i need some help with printing a slice of structs which there is a child -
parent relation in the struct.
*type* Emp *struct* {
id int
name string
parentID int
}
probably the best way to do it recursively but i couldnt manage to do
https://play.golang.org/p/jHcbu3uBgOD
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/6d239318-4fe5-4da0-8517-0f775a45dae6n%40googlegroups.com.