func()

in tools/functional_test/src/runtest/flags.go [30:40]


func (m *StringMapFlag) Set(value string) error {
	split := strings.SplitN(value, "=", 2)
	if len(split) != 2 {
		return errors.New("Invalid flag format. Value should be key=value")
	}
	if *m == nil {
		*m = make(map[string]string)
	}
	(*m)[split[0]] = split[1]
	return nil
}