Documentation
¶
Index ¶
- Variables
- func ArgTest() bool
- func CallerFn(fn func(frame CallerFrame) bool, skip ...int) uintptr
- func CallerFormatPath(path string, max ...int) string
- func CallerPC(skip ...int) uintptr
- func CallerString(skip ...int) string
- func DOT() bool
- func EnvDebug() bool
- func ExeDir() string
- func ExeFull() string
- func ExeName() string
- func ExitErr(err error, a ...any)
- func GoListRoot() string
- func Must0(err error, a ...any)
- func Must1[T any](v1 T, err error, a ...any) T
- func Must2[T1 any, T2 any](v1 T1, v2 T2, err error, a ...any) (T1, T2)
- func Must3[T1 any, T2 any, T3 any](v1 T1, v2 T2, v3 T3, err error, a ...any) (T1, T2, T3)
- func PanicErr(err error, a ...any)
- func RunErr(fn func(t int, s string), err error, a ...any)
- func Stack(skip ...int) string
- func WorkDir() string
- type CallerFrame
- type GoList
Constants ¶
This section is empty.
Variables ¶
View Source
var Exit = func(t int, s string) { if s != "" { wPrintln(t, s) } if t >= 0 && !ArgTest() { os.Exit(t) } }
View Source
var Panic = func(t int, s string) { panic(s) }
Functions ¶
func CallerFormatPath ¶
func CallerString ¶
func GoListRoot ¶
func GoListRoot() string
Types ¶
type CallerFrame ¶
type GoList ¶ added in v2.0.2
type GoList struct { Dir string `json:"Dir"` ImportPath string `json:"ImportPath"` Name string `json:"Name"` Root string `json:"Root"` Module struct { Path string `json:"Path"` Main bool `json:"Main"` Dir string `json:"Dir"` GoMod string `json:"GoMod"` GoVersion string `json:"GoVersion"` } `json:"Module"` }
Click to show internal directories.
Click to hide internal directories.