gather

package
v0.1.0-1631153474257730 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExampleStock stock = stock{}

Functions

func Get

func Get() (gather, error)

func RandInt

func RandInt(min int, max int) int

func RandomFromPool

func RandomFromPool(l int, pool string) string

func RandomString

func RandomString(l int) string

randomStringNoConsecutive creates a random string from upper case characters

func RandomStringNoConsecutive

func RandomStringNoConsecutive(l int) string

RandomStringNoConsecutive creates a random string from upper case characters; identical consecutive letters are not allowed.

Types

type Price

type Price uint32

Price is a type used to represent monetary values as integers. This simplifies and speeds up code in many instances.

func (Price) String

func (p Price) String() string

func (Price) ToFloat64

func (p Price) ToFloat64() float64

ToFloat64 converts a price to a float64.

Jump to

Keyboard shortcuts

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