Documentation
¶
Index ¶
- Variables
- func BufferToString(b []byte) string
- func CancellableDefer(fn func()) (do func(), include func(fn func()), cancel context.CancelFunc)
- func EmptyIterSeq[T any]() iter.Seq[T]
- func EmptyIterSeq2[X any, Y any]() iter.Seq2[X, Y]
- func IterKeysSorted[Map ~map[string]V, V any](m Map) iter.Seq[string]
- func IterMapSorted[Map ~map[string]V, V any](m Map) iter.Seq2[string, V]
- func ReadCloser(reader io.Reader, closer io.Closer) io.ReadCloser
- func StringToBuffer(s string) []byte
- type CloserFunc
- type FlagKey
- type NoCopy
Constants ¶
This section is empty.
Variables ¶
View Source
var IsNotTesting = !testing.Testing()
Functions ¶
func BufferToString ¶
func CancellableDefer ¶
func CancellableDefer(fn func()) (do func(), include func(fn func()), cancel context.CancelFunc)
func EmptyIterSeq ¶
func ReadCloser ¶
func StringToBuffer ¶
Types ¶
type CloserFunc ¶
type CloserFunc func() error
func (CloserFunc) Close ¶
func (f CloserFunc) Close() error
Click to show internal directories.
Click to hide internal directories.