number

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Number

type Number struct {
	// contains filtered or unexported fields
}

func NewNumber

func NewNumber(
	value interface{},
) Number

func (Number) GetFloatOrDefault

func (n Number) GetFloatOrDefault(
	defaultValue float64,
) float64

func (Number) GetIntOrDefault

func (n Number) GetIntOrDefault(
	defaultValue int,
) int

func (Number) GetUintOrDefault

func (n Number) GetUintOrDefault(
	defaultValue uint,
) uint

type Type

type Type int
const (
	TypeUnknown Type = iota
	TypeFloat
	TypeInt
	TypeUint
)

Jump to

Keyboard shortcuts

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