This repository has been archived on 2025-05-15. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
synchronizator-go/pkg/utils.go

13 lines
229 B
Go

package synchronizator
import "reflect"
func getTypeOfStruct(shape interface{}) string {
// Get the type and handle pointer types
t := reflect.TypeOf(shape)
if t.Kind() == reflect.Ptr {
t = t.Elem()
}
return t.Name()
}