util

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListToMap

func ListToMap(slice []string) map[string]bool

func MergeChannels

func MergeChannels[T any](channels []<-chan T) <-chan T

Types

type BytesWriteCloser

type BytesWriteCloser struct {
	// contains filtered or unexported fields
}

BytesWriteCloser implements io.WriteCloser for bytes.Buffer

func NewBytesWriteCloser

func NewBytesWriteCloser(p []byte) *BytesWriteCloser

NewBytesWriteCloser returns io.WriteCloser for []bytes

func (*BytesWriteCloser) Buffer

func (w *BytesWriteCloser) Buffer() *bytes.Buffer

Buffer returns buffer with data.

func (*BytesWriteCloser) Close

func (w *BytesWriteCloser) Close() error

Close implements .Close() method for io.WriterCloser

func (*BytesWriteCloser) Write

func (w *BytesWriteCloser) Write(p []byte) (int, error)

Write writes data.

Jump to

Keyboard shortcuts

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