diff --git a/service_map.go b/service_map.go index 5a3e0c1..8cf122a 100644 --- a/service_map.go +++ b/service_map.go @@ -155,6 +155,7 @@ func validateType(t reflect.Type) (rt reflect.Type, rv reflect.Value, err error) err = fmt.Errorf("Type is Struct. Pass by reference, i.e. %s", t) return } + rt = t if t.Kind() == reflect.Ptr { rt = t.Elem() }