generated from alecodes/base-template
13 lines
229 B
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()
|
|
}
|