Documentation
¶
Index ¶
- func AnyErr(errs ...error) error
- func Assert(condition bool, errMessage string)
- func DefaultFormat(format string) formatFunc
- func FormatMap(in map[string]string, format formatFunc) []string
- func Log(fn func(msg string, args ...any), message string, args ...any)
- func PrefixErr(prefix string, err error) error
- func ReadTuxleString(reader bufio.Reader) (string, error)
- func ReadUint16(reader io.Reader) (uint16, error)
- func ReadUint32(reader io.Reader) (uint32, error)
- func ReadUint64(reader io.Reader) (uint64, error)
- func ReadUint8(reader io.Reader) (uint8, error)
- func SeparateMap(in map[string]string) (keys []string, values []string)
- func SlicesDiff[T string | int | bool](a, b []T) []T
- func WriteTuxleString(writer io.Writer, in string) error
- func WriteUint16(writer io.Writer, in uint16) error
- func WriteUint32(writer io.Writer, in uint32) error
- func WriteUint64(writer io.Writer, in uint64) error
- func WriteUint8(writer io.Writer, in uint8) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultFormat ¶ added in v1.0.1
func DefaultFormat(format string) formatFunc
Format using fmt.Sprintf by providing key and value as strings.
Example format: '%s' %s -> '<key>' <value>
func FormatMap ¶ added in v1.0.1
Format map into a slice with specific key+value transformation function.
func ReadTuxleString ¶
Read a string that ends with '\x00' (null character)
func SeparateMap ¶ added in v1.0.2
Separates map into its keys and values
func SlicesDiff ¶
func WriteTuxleString ¶
Write a string that ends with '\x00' (null character)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.