Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CaptureCallers uint8 = 16
CaptureCallers is the max amount of caller frames that should be captured using runtime.Callers to determine the absolute path of the main.go file.
View Source
var SkipCaller = -4
SkipCaller skips the amount of callers when determining the absolute path of the main.go file. When this value is negative, it is subtracted from the amount of captured caller frames. Otherwise, the absolute value is used.
Functions ¶
Types ¶
type Loader ¶
type Loader struct {
Dir string
// contains filtered or unexported fields
}
func NewDevelopmentLoader ¶
NewDevelopmentLoader returns a new Loader configured for development environments.
func NewProductionLoader ¶
func NewProductionLoader() *Loader
NewProductionLoader returns a new Loader configured for production environments.
Click to show internal directories.
Click to hide internal directories.