util

package
v0.0.0-...-00a43c6 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GUnzip

func GUnzip(in []byte) ([]byte, error)

func GZip

func GZip(in []byte) ([]byte, error)

func ReadAssert

func ReadAssert(r io.Reader, b []byte) error

ReadAssert tries to read len(b) bytes and errors if reading failed or if less bytes were read

func ReadCompare

func ReadCompare(f io.Reader, b []byte) (bool, error)

Read len(b) bytes from f and compare with b

func WriteAssert

func WriteAssert(w io.Writer, b []byte) error

WriteAssert writes to f and errors if writing failed or if it wasn't possible to write all bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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