mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 13:47:19 +00:00
12 lines
201 B
Go
12 lines
201 B
Go
|
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)
|
||
|
}
|
||
|
}
|