number

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2019 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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) 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) 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) 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