fixture

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Identity

func Identity[T comparable](v T) T

func Map

func Map[T, U any](values []T, fn func(T) U) []U

func Sum

func Sum[T Numeric](a, b T) T

func Use

func Use() int

Types

type Box

type Box[T any] struct {
	Value T
}

func (Box[T]) Get

func (b Box[T]) Get() T

type Numeric

type Numeric interface {
	~int | ~int64
}

type Pair

type Pair[A, B any] struct {
	First  A
	Second B
}

type Slice

type Slice[T any] []T

Jump to

Keyboard shortcuts

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