Documentation ¶
Overview ¶
Package basepath provides functionality to get the current absolute directory of the application. It also provides a method to return an absolute path from a possible relative path.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basepath ¶
type Basepath struct {
Path string
}
A Basepath holds the current absolute directory of the application, and routines to return it.
func NewBasepath ¶
NewBasepath returns a new Basepath instance. It may also return an error, when the path could not be determined.
func (Basepath) GetPathWith ¶
GetPathWith returns an absolute path to the given file. If the given file is relative the current absolute path will be prepended.
Click to show internal directories.
Click to hide internal directories.