Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnsupportedRemoteRepository = errors.New("create logging CodeLinker: Unsupported remote repository, must be github (or github enterprise)") //nolint:lll
)
Functions ¶
Types ¶
type CodeLinker ¶
type CodeLinker interface {
// Link produces a source code link from source file and line number
Link(file string, line int) string
}
CodeLinker defines objects that can produce source code links from file and line number
func GetCodeLinker ¶
func GetCodeLinker() (CodeLinker, error)
GetCodeLinker gets the application's code linker
Return value depends on the build constants. See project documentation for more info. Defaults use local links
Errors returned here are not serious, and loggers will work without a linker, but it is recommended you at least log the error
type LocalLinker ¶
type LocalLinker struct{}
LocalLinker produces links to the local file system
The local file system is actually the file system at build time, so is only useful in development where build and run occur on the same machine
Click to show internal directories.
Click to hide internal directories.