fixture

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: 0BSD Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const Huge = 1 << 100

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	Observer
	Tenant() string
	Credit(int) int
}

type Count

type Count int
const Start Count = 2

type Detail

type Detail struct{ Text string }

type Label

type Label string

type Observer

type Observer interface {
	During(func())
	Observe([]string, map[string]any)
	Mark()
	ResetMark()
}

type Row

type Row struct {
	Next    *Row
	Counter *Count
	Detail  Detail
	Count   Count
	Active  bool
	Ratio   float32
	Amount  float64
	Bits    uint16
}

func (*Row) Bump

func (r *Row) Bump(n Count) Count

func (*Row) Choose

func (r *Row) Choose(other *Row) *Row

func (*Row) Mark

func (r *Row) Mark(n Count)

func (*Row) Tagged

func (r *Row) Tagged(s Label) bool

Jump to

Keyboard shortcuts

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