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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Identity

func Identity[T any](v T) T

func Map

func Map[T, U any](xs []T, f func(T) U) []U

func Use

func Use() string

Types

type Alias

type Alias[T any] = List[T]

type Box

type Box[T any] struct {
	Value T
}

Box stores a value of any type.

func (Box[T]) Get

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

type Combiner

type Combiner[T, U any] interface {
	Combine(T, U) T
}

type Integer

type Integer interface {
	~int | ~int64
}

type List

type List[T any] []T

type Pair

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

func (Pair[A, B]) FirstValue

func (p Pair[A, B]) FirstValue() A

type Reader

type Reader interface {
	Read() string
}

type Record

type Record struct {
	Name string
}

Jump to

Keyboard shortcuts

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