func addConfig(client *redis.Client, key string, nameAndValue string) { parts := strings.Split(nameAndValue, "=") name := parts[0] value := strings.Join(parts[1:len(parts)], "=") _, err := client.Hset(key, name, value) if err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } }