Fix go1.17 compatibility

This commit is contained in:
2022-05-01 02:09:29 -07:00
parent 8be1fd2348
commit 06b5e07b8a
3 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ func (s *Server) Register(v any) error {
// create variable to store name of v
var name string
switch kind {
case reflect.Pointer:
case reflect.Ptr:
// If v is a pointer, get the name of the underlying type
name = val.Elem().Type().Name()
case reflect.Struct: