devel

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FlagXProd = varflag.BoolFunc("x-prod", false, "DEV ONLY: force app into production mode setting app_is_devel false when running from source.")
)

Functions

func RuntimeCallerStr

func RuntimeCallerStr(depth int) (string, bool)

RuntimeCallerStr is utility function to get the caller information. It returns the file and line number of the caller in form of string. e.g. /path/to/file.go:123

Types

type Settings

type Settings struct {
	AllowProd settings.Bool `default:"false" desc:"Allow set app into production mode when running from source."`
}

Settings for the devel module. These settings are used to configure the behavior of the application when user compiles your application from source or uses go run .

func (Settings) Blueprint

func (s Settings) Blueprint() (*settings.Blueprint, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL