params

package
v0.0.0-...-d475280 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UI32

func UI32(s string, l, u uint32) (v uint32, err error)

UI32 returns a uint32, checking lower and upper bounds.

func ValBool

func ValBool(k string, d bool, p map[string]string) (v bool, err error)

ValBool returns a boolean parameter if present, d otherwise.

func ValString

func ValString(k string, p map[string]string) (v string)

ValString returns the parameter with the given key, or an empty string if it doesn't exists.

func ValUI32

func ValUI32(k string, d, l, u uint32, p map[string]string) (v uint32, err error)

ValUI32 returns a uint32 parameter if present, d otherwise, checking lower and upper bounds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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