packagefunctionfixture

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: 0BSD Imports: 3 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

This section is empty.

Variables

View Source
var Source embed.FS

Functions

func Double

func Double(n int) int

func Increment

func Increment(c *Counter, n int) int

func Options

func Options() evmbind.Options

func Reset

func Reset(c *Counter)

func SetFirst

func SetFirst(values ...int)

func Split

func Split(v []int) (int, error)

func Sum

func Sum(start int, values ...int) int

func Visit

func Visit(c *Counter, yield func(int) bool) int

Types

type Adder

type Adder interface{ Add(values ...int) int }

func AsAdder

func AsAdder(c *Counter) Adder

type Bounds

type Bounds struct{ Lower, Upper []byte }

func RangeOf

func RangeOf(lower, upper []byte) Bounds

type Counter

type Counter struct{ Value int }

func NewCounter

func NewCounter(n int) *Counter

func (*Counter) Add

func (c *Counter) Add(values ...int) int

type Group

type Group struct {
	Children []Adder
	First    Adder
	Named    map[string]Adder
}

func NewGroup

func NewGroup(children ...Adder) *Group

Jump to

Keyboard shortcuts

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