tools

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyErr

func AnyErr(errs ...error) error

func Assert

func Assert(condition bool, errMessage string)

func Log

func Log(fn func(msg string, args ...any), message string, args ...any)

func PrefixErr

func PrefixErr(prefix string, err error) error

func ReadTuxleString

func ReadTuxleString(reader bufio.Reader) (string, error)

Read a string that ends with '\x00' (null character)

func ReadUint16

func ReadUint16(reader io.Reader) (uint16, error)

func ReadUint32

func ReadUint32(reader io.Reader) (uint32, error)

func ReadUint64

func ReadUint64(reader io.Reader) (uint64, error)

func ReadUint8

func ReadUint8(reader io.Reader) (uint8, error)

func SlicesDiff

func SlicesDiff[T string | int | bool](a, b []T) []T

func WriteTuxleString

func WriteTuxleString(writer io.Writer, in string) error

Write a string that ends with '\x00' (null character)

func WriteUint16

func WriteUint16(writer io.Writer, in uint16) error

func WriteUint32

func WriteUint32(writer io.Writer, in uint32) error

func WriteUint64

func WriteUint64(writer io.Writer, in uint64) error

func WriteUint8

func WriteUint8(writer io.Writer, in uint8) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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