envconst

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 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.7.4

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

func Int64

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

func Reset added in v0.7.4

func Reset()

func String added in v0.7.4

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

func Uint64 added in v0.7.4

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

func Var added in v0.7.4

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

Types

type EntryReport added in v0.7.4

type EntryReport struct {
	Var         string
	Value       string
	ValueGoType string
}

type Report added in v0.7.4

type Report struct {
	Entries []EntryReport
}

func GetReport added in v0.7.4

func GetReport() *Report

Jump to

Keyboard shortcuts

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