lan

package module
v0.0.0-...-cafa723 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Digits         = "0123456789"
	AsciiLowercase = "abcdefghijklmnopqrstuvwxyz"
	AsciiUppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	Punctuation    = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"
	Asciis         = Digits + AsciiLowercase + AsciiUppercase + Punctuation
)

Variables

This section is empty.

Functions

func ErrOr

func ErrOr(err error, or error) error

func ErrOrString

func ErrOrString(err error) string

func If

func If[T any](b bool, v, e T) T

func MustMarshal

func MustMarshal(val any) []byte

func Or

func Or[T any](v, e T) T

Types

type Pair

type Pair[Key any, Value any] struct {
	First  Key
	Second Value
}

type Syncmap

type Syncmap[K, V any] struct {
	sync.Map
}

func (*Syncmap[K, V]) Load

func (m *Syncmap[K, V]) Load(key K) (value V, ok bool)

func (*Syncmap[K, V]) Store

func (m *Syncmap[K, V]) Store(key K, value V)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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