number

package
v1.5.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chunk added in v1.2.0

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 added in v1.4.8

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 added in v1.4.8

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 added in v1.4.8

func (v Values) Sum() decimal.Decimal

func (Values) Truncate added in v1.4.8

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