Documentation ¶
Index ¶
- Constants
- type Value
- func (v Value) Add(v2 Value) Value
- func (v *Value) AtomicAdd(v2 Value)
- func (v *Value) AtomicLoad() Value
- func (v Value) Div(v2 Value) Value
- func (v Value) Float64() float64
- func (v Value) Int64() int64
- func (v Value) Mul(v2 Value) Value
- func (v Value) MulFloat64(v2 float64) Value
- func (v Value) Sub(v2 Value) Value
- func (v *Value) UnmarshalJSON(data []byte) error
- func (v *Value) UnmarshalYAML(unmarshal func(a interface{}) error) (err error)
Constants ¶
View Source
const DefaultPow = 1e8
View Source
const DefaultPrecision = 8
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Value ¶
type Value int64
func NewFromFloat ¶
func NewFromFloat32 ¶
func NewFromInt ¶
func NewFromInt64 ¶
func NewFromString ¶
func (*Value) AtomicLoad ¶ added in v1.2.0
func (Value) MulFloat64 ¶
func (*Value) UnmarshalJSON ¶
func (*Value) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.