common

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

README

common

common go utilities

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknown      = errors.New("unknown")
	ErrNotFound     = errors.New("not found")
	ErrConflict     = errors.New("conflict")
	ErrBadInput     = errors.New("bad input")
	ErrNotAllowed   = errors.New("not allowed")
	ErrInvalidState = errors.New("invalid state")
)

Functions

This section is empty.

Types

type Set

type Set[A comparable] interface {
	Has(a A) bool
	Add(a A)
	AddAll(a ...A)
	Remove(a A)
	Count() int
	Values() []A
}

func NewSet

func NewSet[A comparable]() Set[A]

Jump to

Keyboard shortcuts

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