Documentation
¶
Index ¶
- Variables
- func AppName() string
- func CheckCanCustomize()
- func CheckLockedDown()
- func FilterSlice[E any, S ~[]E](s S, f func(E) bool) S
- func IsDebuggerAttached() bool
- func LockCustomizations()
- func Must[T any](v T, err error) T
- func Ptr[T any](t T) *T
- func ReadJSONFile[T any](name string) (T, error)
- func SeqContains[T comparable](src iter.Seq[T], v T) bool
- func SeqReader(src iter.Seq2[[]byte, error]) io.ReadCloser
- func SetAppName(name string)
- func ValueOrDefault[T any](p *T, d T) T
- func ValueOrZero[T any](p *T) T
- type NoCopy
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTrailingGarbage = errors.New("trailing garbage in JSON file")
Functions ¶
func AppName ¶
func AppName() string
AppName is what the app will call itself. When customizing, overwrite it before calling Main().
func CheckCanCustomize ¶
func CheckCanCustomize()
See: [instance.CheckCanCustomize] for details and an importable version of this function.
func CheckLockedDown ¶
func CheckLockedDown()
See: [instance.CheckLockedDown] for details and an importable version of this function.
func FilterSlice ¶
func IsDebuggerAttached ¶ added in v0.5.0
func IsDebuggerAttached() bool
func LockCustomizations ¶
func LockCustomizations()
func ReadJSONFile ¶
func SeqContains ¶ added in v0.5.0
func SeqContains[T comparable](src iter.Seq[T], v T) bool
func SetAppName ¶
func SetAppName(name string)
func ValueOrDefault ¶
func ValueOrDefault[T any](p *T, d T) T
func ValueOrZero ¶
func ValueOrZero[T any](p *T) T
Types ¶
Click to show internal directories.
Click to hide internal directories.