Closed anacrolix closed 7 years ago
I cannot decode into a map[K]*V, but can to a map[K]V.
type Config struct { Backends map[string]*Backend } type Backend struct { Hosts []string Addr string Scheme string Verify *bool hc *http.Client }
panic: reflect.Value.SetMapIndex: value of type main.Backend is not assignable to type *main.Backend
I cannot decode into a map[K]*V, but can to a map[K]V.
panic: reflect.Value.SetMapIndex: value of type main.Backend is not assignable to type *main.Backend