types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//TYPESTRING string
	TYPESTRING = iota
	//TYPEINT int
	TYPEINT
	//TYPEFLOAT float
	TYPEFLOAT
	//TYPEDICT dict
	TYPEDICT
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyVal

type KeyVal struct {
	Key string
	Val string
	Typ uint16
}

KeyVal - Generic Key/Value struct for the library

func Float

func Float(key string, val float64) KeyVal

Float keyVal

func Int

func Int(key string, val int) KeyVal

Int keyVal

func Str

func Str(key string, val string) KeyVal

Str keyVal

func (KeyVal) ValueAsFloat

func (keyVal KeyVal) ValueAsFloat() float64

ValueAsFloat return float

func (KeyVal) ValueAsInt

func (keyVal KeyVal) ValueAsInt() int

ValueAsInt return int

Jump to

Keyboard shortcuts

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