neoneo-go/cli/flags/util.go

12 lines
201 B
Go
Raw Normal View History

package flags
import "strings"
func eachName(longName string, fn func(string)) {
parts := strings.Split(longName, ",")
for _, name := range parts {
name = strings.Trim(name, " ")
fn(name)
}
}