Skip to content

tim-koehler/go-filesystree

Repository files navigation

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 🚧...

About

Go-FilesysTree is a package to maybe help others with building a file-system like tree data structure in Golang.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages