How to print the name of the struct type, i.e. i can include it in the print statement i.e. something like
type MyStruct struct { ... }
func main() {
fmt.Println(MyStruct.className())
}
If possible, can it be considered slow? (i.e. reflection)
source
to share