number

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chunk

func Chunk(n, p int, r func(l, r int))

func Decimal

func Decimal(v string) decimal.Decimal

func Limit

func Limit(limit int, max int, args ...int) int

func Max

func Max(args ...int) (max int)

func Min

func Min(args ...int) (min int)

func ParseInt64

func ParseInt64(s string) (int64, bool)

func RandomPin

func RandomPin() string

Types

type Values

type Values map[string]decimal.Decimal

func ParseValues

func ParseValues(input string) (Values, error)

func (Values) Add

func (v Values) Add(key string, value decimal.Decimal)

func (Values) Del

func (v Values) Del(key string)

func (Values) Div

func (v Values) Div(d decimal.Decimal) Values

func (Values) Encode

func (v Values) Encode() string

func (Values) Get

func (v Values) Get(key string) decimal.Decimal

func (Values) Merge

func (v Values) Merge(other Values)

func (Values) Mul

func (v Values) Mul(m decimal.Decimal) Values

func (*Values) Scan

func (v *Values) Scan(value interface{}) error

func (Values) Set

func (v Values) Set(key string, value decimal.Decimal)

func (Values) String

func (v Values) String() string

func (Values) Sum

func (v Values) Sum() decimal.Decimal

func (Values) Truncate

func (v Values) Truncate(p int32) Values

func (Values) Value

func (v Values) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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