enverant

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: MIT Imports: 11 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnrichStr

func EnrichStr(value string) string

func ReadJson

func ReadJson(path string) map[string]interface{}

Types

type Enverant

type Enverant struct {
	// contains filtered or unexported fields
}

func NewEnverant

func NewEnverant(opts ...EnverantOption) *Enverant

func (*Enverant) GetBool

func (e *Enverant) GetBool(key string) bool

func (*Enverant) GetBoolOr

func (e *Enverant) GetBoolOr(key string, default_ bool) bool

func (*Enverant) GetInt

func (e *Enverant) GetInt(key string) int

func (*Enverant) GetIntOr

func (e *Enverant) GetIntOr(key string, default_ int) int

func (*Enverant) GetStr

func (e *Enverant) GetStr(key string) string

func (*Enverant) GetStrOr

func (e *Enverant) GetStrOr(key string, default_ string) string

type EnverantOption

type EnverantOption func(m *Enverant)

func WithEnvFile

func WithEnvFile(path string) EnverantOption

Jump to

Keyboard shortcuts

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