Rename func which is now a method.
This commit is contained in:
parent
95b2a60b29
commit
aed3f98703
|
@ -47,7 +47,7 @@ func interpolationFuncCompact() ast.Function {
|
|||
if !IsStringList(args[0].(string)) {
|
||||
return args[0].(string), nil
|
||||
}
|
||||
return CompactStringList(StringList(args[0].(string))).String(), nil
|
||||
return StringList(args[0].(string)).Compact().String(), nil
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ type StringList string
|
|||
const stringListDelim = `B780FFEC-B661-4EB8-9236-A01737AD98B6`
|
||||
|
||||
// Takes a Stringlist and returns one without empty strings in it
|
||||
func (sl StringList) CompactStringList() StringList {
|
||||
func (sl StringList) Compact() StringList {
|
||||
parts := sl.Slice()
|
||||
|
||||
var newlist []string
|
||||
|
|
Loading…
Reference in New Issue