Documentation ¶
Index ¶
- func AnyOf[T any](objs ...T) (_ T, found bool)
- func BytesToString(b []byte) string
- func IgnoreError[T any](obj T, err error) T
- func MapsKeysSorted[M ~map[K]V, K constraints.Ordered, V any](m M) []K
- func MaybeCast[T any](obj any) T
- func MaybeCastDefault[T any](obj any, fallback T) T
- func Must(err error)
- func Must2[T any](obj T, err error) T
- func Must3[T, U any](obj1 T, obj2 U, err error) (T, U)
- func Must4[T, U, V any](o1 T, o2 U, o3 V, err error) (T, U, V)
- func Must5[T, U, V, W any](o1 T, o2 U, o3 V, o4 W, err error) (T, U, V, W)
- func PrintAt(x, y uint, a ...any)
- func Printf(format string, a ...any)
- func PrintfAt(x, y uint, format string, a ...any)
- func Printfj(a ...any)
- func Printfq(a ...any)
- func PrintfqAt(x, y uint, a ...any)
- func Printfv(a ...any)
- func PrintfvAt(x, y uint, a ...any)
- func Println(a ...any)
- func StringToBytes(s string) []byte
- func TryClose(obj any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶ added in v0.0.5
func IgnoreError ¶ added in v0.0.2
func MapsKeysSorted ¶
func MapsKeysSorted[M ~map[K]V, K constraints.Ordered, V any](m M) []K
func MaybeCastDefault ¶
func StringToBytes ¶ added in v0.0.5
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.