I am new to golang and trying to explore the lang with sample hobby project for that I need to write the below tree like structure. Its like File system, one Folder will have many Folder and files. And tree structure goes on until it has no further branch.
[Fol]
[Fol,Fol,Fol] [Fil,Fil,Fil]
My solution to have:
type Fol struct{
slice of Fol
slice of Fil
}
Its taking time for me to design, So any once help is very much appreciated.
Regards, Vineeth
Finally I used solution provided in below link: https://stackoverflow.com/a/12659537/430294