gomp/fileBrowser.go

12 lines
236 B
Go
Raw Normal View History

package main
type FileNode struct{
children [] FileNode
path string
parent *FileNode
}
func (f *FileNode) addChildren(path string){
f.children = append(f.children, FileNode{children: make([]FileNode, 0), path: path, parent: f})
}