Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileLocator ¶
FileLocator provides an absolute path to the file. This is useful for writing data to that file. Loading data from file should be done via go embed.
type LevelFileLocator ¶
type LevelFileLocator struct {
// contains filtered or unexported fields
}
func NewLevelFileLocator ¶
func NewLevelFileLocator(level CallLevel) *LevelFileLocator
NewLevelFileLocator creates locator, which is capable of resolving full path to files located relative to the call stack.
func NewSiblingFileLocator ¶
func NewSiblingFileLocator() *LevelFileLocator
NewSiblingFileLocator creates locator, which is capable of resolving full path to files located under the same directory where this constructor was called.
func (LevelFileLocator) AbsPathTo ¶
func (l LevelFileLocator) AbsPathTo(filename string) string
Click to show internal directories.
Click to hide internal directories.