tool

package
v0.0.0-...-d48bf00 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFile

func ReadFile(filename string) ([]byte, error)

func SaveToFile

func SaveToFile(content []byte, filename string, append bool) error

Types

type Multiplex

type Multiplex[T any] struct {
	// contains filtered or unexported fields
}

func NewMultiplex

func NewMultiplex[T any](original <-chan T) *Multiplex[T]

func (*Multiplex[T]) Add

func (m *Multiplex[T]) Add(ch chan T)

func (*Multiplex[T]) Plex

func (m *Multiplex[T]) Plex() <-chan T

func (*Multiplex[T]) Remove

func (m *Multiplex[T]) Remove(ch chan T)

Jump to

Keyboard shortcuts

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