From 62502391749c760f2cca6a250f9e97e06af6fd5b Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 2 Nov 2017 19:34:59 +0900 Subject: [PATCH] ing --- service_map.go | 1 + 1 file changed, 1 insertion(+) 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() }