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

Overview

Package fixture demonstrates documentation extraction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format[T any](v T) string

Format formats a value.

func Identity

func Identity[T any](v T) T

Identity returns its argument.

Types

type Box

type Box[T any] struct {
	Value T
}

Box stores one value.

func (Box[T]) Get

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

Get returns the stored value.

type Pair

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

Pair contains two values.

func NewPair

func NewPair[A, B any](a A, b B) Pair[A, B]

NewPair constructs a Pair.

Jump to

Keyboard shortcuts

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