envconst

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(varname string, def bool) (d bool)

func Duration

func Duration(varname string, def time.Duration) (d time.Duration)

func Int added in v0.2.0

func Int(varname string, def int) (d int)

func Int64

func Int64(varname string, def int64) (d int64)

func Reset added in v0.3.0

func Reset()

func String added in v0.2.0

func String(varname string, def string) (d string)

func Uint64 added in v0.5.0

func Uint64(varname string, def uint64) (d uint64)

func Var added in v0.3.0

func Var(varname string, def flag.Value) (d interface{})

Types

type EntryReport added in v0.3.0

type EntryReport struct {
	Var         string
	Value       string
	ValueGoType string
}

type Report added in v0.3.0

type Report struct {
	Entries []EntryReport
}

func GetReport added in v0.3.0

func GetReport() *Report

Jump to

Keyboard shortcuts

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