utils

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAllTo

func ReadAllTo(r io.Reader, b []byte) (buf []byte, err error)

func ReadByte

func ReadByte(r io.Reader) (b byte, err error)

func WriteByte

func WriteByte(w io.Writer, b byte) (err error)

Types

type EventCallback

type EventCallback[A any, B any] struct {
	// contains filtered or unexported fields
}

type HandlerList

type HandlerList[A any, B any] struct {
	// contains filtered or unexported fields
}

func (*HandlerList[A, B]) Call

func (l *HandlerList[A, B]) Call(a A, b B)

func (*HandlerList[A, B]) On

func (l *HandlerList[A, B]) On(cb func(A, B)) (cancel func())

func (*HandlerList[A, B]) Once

func (l *HandlerList[A, B]) Once(cb func(A, B)) (cancel func())

Jump to

Keyboard shortcuts

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