Merge pull request #639 from mslacken/DefaultNetwork
use default not override for single network entry
This commit is contained in:
@@ -166,6 +166,17 @@ func (ent *Entry) SetDefaultSlice(val []string) {
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
Set default etry as bool
|
||||
*/
|
||||
func (ent *Entry) SetDefaultB(val bool) {
|
||||
if val {
|
||||
ent.def = []string{"true"}
|
||||
} else {
|
||||
ent.def = []string{"false"}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Remove a element from a slice
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user