internal

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsNotTesting = !testing.Testing()

Functions

func BufferToString

func BufferToString(b []byte) string

func CancellableDefer

func CancellableDefer(fn func()) (do func(), include func(fn func()), cancel context.CancelFunc)

func EmptyIterSeq

func EmptyIterSeq[T any]() iter.Seq[T]

func EmptyIterSeq2

func EmptyIterSeq2[X any, Y any]() iter.Seq2[X, Y]

func IterKeysSorted

func IterKeysSorted[Map ~map[string]V, V any](m Map) iter.Seq[string]

func IterMapSorted

func IterMapSorted[Map ~map[string]V, V any](m Map) iter.Seq2[string, V]

func ReadCloser

func ReadCloser(reader io.Reader, closer io.Closer) io.ReadCloser

func StringToBuffer

func StringToBuffer(s string) []byte

Types

type CloserFunc

type CloserFunc func() error

func (CloserFunc) Close

func (f CloserFunc) Close() error

type FlagKey

type FlagKey struct {
	Key string
}

type NoCopy

type NoCopy struct{}

func (*NoCopy) Lock

func (*NoCopy) Lock()

func (*NoCopy) Unlock

func (*NoCopy) Unlock()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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