Simple file path manipulation focusing on splits and replacements.
$ go get -u github.com/j-schwar/fpath
Splitting a path on its extension:
file, ext := fpath.SplitExt("foo.go")
// file -> "foo"
// ext -> "go"
Replacing the extension of a file:
objFile := fpath.ReplaceExt("foo.cpp", "o")
// objFile -> "foo.o"
Removing a file extension:
file := fpath.RemoveExt("foo.go")
// file -> "foo"