Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.06 KB

README.md

File metadata and controls

33 lines (26 loc) · 1.06 KB

Go-FilesysTree Test Badge Coverage Status Go Report Card

Go-FilesysTree is a package which I build for another project but decided to publish to maybe help others with building a file system like tree data structure in Golang.

Getting Started

go get github.com/tim-koehler/go-filesystree

Examples

func main() {
    fileList := []string{
        "/foo/bar/baz.txt",
        "/foo/bar/a.txt",
        "/foo/bar/x.go",
        "/tmp/a/b.c",
        "/tmp/b/c.c",
        "/tmp/b/d.c"}

    fst := New()
    for _, s := range fileList {
        fst.AddFile(s, Metadata{
            "Date": time.Now().String(),
        })
    }
}

...🚧 work in progress 🚧...