sorry to answer you late.
i couldn't find the time to check your responses
first of all, thank you for the answers
Michael i changed your code a bit because there was an unnecessary recursion
if you wanna check it out
here is a new link for it
https://play.golang.org/p/4MSOb6OKvKY
Michael Ellis ,
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/jHcbu3