utils

package
v0.0.0-...-ee163f1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Lt _ordering = -1
	Eq _ordering = 0
	Gt _ordering = 1
)

Variables

This section is empty.

Functions

func MkStringSet

func MkStringSet(x ...string) map[string]bool

Types

type Iterator

type Iterator[T any] <-chan T

func NewBufferedIterator

func NewBufferedIterator[T any](it Iterator[T], buffer int) Iterator[T]

func NewIterator

func NewIterator[T any]() (r Iterator[T], w chan<- T)

type Ordering

type Ordering interface {
	fmt.Stringer

	Lt() bool
	Gt() bool
	Eq() bool
	LtEq() bool
	GtEq() bool
}

type ResultIterator

type ResultIterator[T any, E error] <-chan v.Result[T, E]

func NewResultIterator

func NewResultIterator[T any, E error]() (r ResultIterator[T, E], w chan<- v.Result[T, E])

type Version

type Version interface {
	fmt.Stringer

	Compare(x Version) Ordering
	Normalize() Version
}

func NewVersion

func NewVersion(v string) Version

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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