config

package
v0.0.0-...-e9a30e3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_AGE     = 110
	UPPER_INDEX = 65
	LOWER_INDEX = 97

	NANOS_PER_MINUTE = 60000000000
	NANOS_PER_HOUR   = 3600000000000
	NANOS_PER_DAY    = 86400000000000
	NANOS_PER_WEEK   = 604800000000000
	NANOS_PER_MONTH  = 2592000000000000
	NANOS_PER_YEAR   = 31556952000000000
)

Variables

View Source
var AgeMap = make(map[float32]string)
View Source
var AgeMapKeys = make([]float32, 0)
View Source
var EthnicityMap = make(map[float32]string)
View Source
var EthnicityMapKeys = make([]float32, 0)
View Source
var GenderIdentityMap = make(map[float32]string)
View Source
var GenderIdentityMapKeys = make([]float32, 0)
View Source
var RaceMap = make(map[float32]string)
View Source
var RaceMapKeys = make([]float32, 0)
View Source
var SexualityMap = make(map[float32]string)
View Source
var SexualityMapKeys = make([]float32, 0)

Functions

func Parse

func Parse(file string, out interface{})

func RandFloat

func RandFloat() float32

func RandFloat64

func RandFloat64() float64

func RandInt

func RandInt(l int, h int) int

func RandInt64

func RandInt64(l int64, h int64) int64

func RandMaskValue

func RandMaskValue(mask string) string

func SplitRange

func SplitRange(rnge string) (int, int)

General helpers

func WindowRange

func WindowRange(window string) time.Duration

func Write

func Write(data interface{}, file string) error

Types

type Code

type Code struct {
	System string `yaml:"system,omitempty"`
	Value  string `yaml:"value,omitempty"`
}

type Configuration

type Configuration struct {
	Inherit []string `yaml:"inherit"`
}

Jump to

Keyboard shortcuts

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