Documentation
¶
Overview ¶
Package cursed contains code that should never be used by anyone.
This place is a message... and part of a system of messages... pay attention to it!
Sending this message was important to us. We considered ourselves to be a powerful culture.
This place is not a place of honor... no highly esteemed deed is commemorated here... nothing valued is here.
What is here was dangerous and repulsive to us. This message is a warning about danger.
The danger is in a particular location... it increases towards a center... the center of danger is here... of a particular size and shape, and below us.
The danger is still present, in your time, as it was in ours.
The danger is to the body, and it can kill.
The form of the danger is an emanation of energy.
The danger is unleashed only if you substantially disturb this place physically. This place is best shunned and left uninhabited.
Index ¶
- func Fold[T any, U any](initial U, data []T, doer func(T, U) U) U
- func Map[D any](data []D, doer func(D) bool) []D
- func Max[T Number](data []T) T
- func Min[T Number](data []T) T
- func Reduce[D any](data []D, doer func(D, D) D) D
- func Sum[T Number](data []T) T
- func UseState[T any](initial T) (func() T, func(T))
- type Mutex
- type Number
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mutex ¶
type Mutex[T any] struct { // contains filtered or unexported fields }
Mutex is a generic locking container for Go much like Rust's std::sync::Mutex<T>.
It differs from a normal sync.Mutex because it guards a value instead of just being something you lock and unlock to guard another value. When you are done with the value, call the function return to re-lock the mutex.
type Number ¶ added in v1.10.0
type Number interface { constraints.Float | constraints.Integer }