Documentation ¶
Index ¶
- Variables
- func Assert(b bool, args ...any)
- func AssertEQ[N Number](a, b N, args ...any)
- func AssertGE[N Number](a, b N, args ...any)
- func AssertGT[N Number](a, b N, args ...any)
- func AssertLE[N Number](a, b N, args ...any)
- func AssertLT[N Number](a, b N, args ...any)
- func BytesFormat(format string, args ...any) []byte
- func CatSlices[T any](args ...[]T) (result []T)
- func Check(err error, args ...any)
- func Cond[T any](a bool, b T, c T) T
- func Errorf(f string, args ...any) error
- func Hi(x uint) byte
- func HiLo(a, b byte) uint
- func HiLoBy(bb []byte) uint
- func InSlice[T comparable_](x T, slice []T) bool
- func LenSlice[T any](x []T) uint
- func LenStr(s string) uint
- func Lo(x uint) byte
- func Max[T Number](b T, c T) T
- func Min[T Number](b T, c T) T
- func NonBlockingReadChan[T any](c <-chan *T) (*T, bool)
- func NonBlockingWriteChan[T any](c chan<- *T, p *T) (ok bool)
- func Repr[T any](a T) string
- func Str[T any](a T) string
- func Value[T any](value T, err error) T
- type Number
Constants ¶
This section is empty.
Variables ¶
View Source
var Fatal = log.Fatalf
View Source
var Format = fmt.Sprintf
View Source
var Log = log.Printf
View Source
var Panic = log.Panicf
Functions ¶
func BytesFormat ¶
func InSlice ¶
func InSlice[T comparable_](x T, slice []T) bool
InSlice tells whether x is in slice.
func NonBlockingReadChan ¶
func NonBlockingWriteChan ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.