Documentation
¶
Index ¶
- func Assert(message string, cond bool)
- func Check(err error)
- func Check2[T any](a T, err error) T
- func Check3[T1, T2 any](a T1, b T2, err error) (T1, T2)
- func Max[T constraints.Integer](x, y T) T
- func Min[T constraints.Integer](x, y T) T
- func MultiLines(s string) string
- func Ptr[T any](v T) *T
- func Reverse[S ~[]E, E any](s S)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Max ¶ added in v0.1.4
func Max[T constraints.Integer](x, y T) T
Max returns the larger of x or y.
func Min ¶ added in v0.1.4
func Min[T constraints.Integer](x, y T) T
Min returns the smaller of x or y.
func MultiLines ¶ added in v0.1.5
MultiLines formats a multiline raw string, changing:
` First line Second line Third line `
to:
`First line Second line Third line`
It is intended to be called like this:
MultiLines(` First Line Second line Third line `)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.