utils

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstNonBlank

func FirstNonBlank(args ...string) string

FirstNonBlank returns first non-empty string from given args.

func Intersect

func Intersect[K comparable](a, b []K) bool

Intersect returns true if values of two slices have at least one similar value.

Types

type CachedReader

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

CachedReader reads from the provided `io.Reader` until `io.EOF` and saves the read content into the inner buffer.

After `io.EOF` it will be providing the read data again and again.

func NewCachedReader

func NewCachedReader(in io.Reader) *CachedReader

func (*CachedReader) Read

func (r *CachedReader) Read(p []byte) (int, error)

Jump to

Keyboard shortcuts

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