must

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(value any, err error) any

func DoMsg

func DoMsg(value any, err error, message string) any

func Env

func Env(key string) string

func EnvBool

func EnvBool(key string) bool

func EnvBoolOr

func EnvBoolOr(key string, defaultValue bool) bool

func EnvInt

func EnvInt(key string) int

func EnvIntOr

func EnvIntOr(key string, defaultValue int) int

func EnvList

func EnvList(key string, separator string) []string

func EnvListOr

func EnvListOr(key string, separator string, defaultValue []string) []string

func EnvOr

func EnvOr(key string, defaultValue string) string

func False

func False(condition bool, message string)

func NotEmpty

func NotEmpty(s string, name string)

func NotNil

func NotNil(value any, name string)

func Ok

func Ok(err error)

func OkMsg

func OkMsg(err error, message string)

func True

func True(condition bool, message string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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