Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Relative ¶
Relative returns the given path relative to the application binary e.g. binary is at /home/fiam/example/example Relative("foo") returns /home/fiam/example/foo Relative("foo/bar") returns /home/fiam/example/foo/bar Relative("/foo/bar") returns /home/fiam/example/foo/bar. Note that when running tests (from e.g. go test) or go run (e.g. go run myfile.go), this function will return the path relative to the current directory rather than the binary. This is done in order to allow functions which use relative paths to work under those circumstances, since go puts the binaries in a temporary directory when using go test or go run, but runs them from the current directory.
Types ¶
This section is empty.