enverant

package
v0.17.2 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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, opts ...ValueOption) bool

func (*Enverant) GetBoolOr

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

func (*Enverant) GetBoolean added in v0.17.0

func (e *Enverant) GetBoolean(key string, opts ...ValueOption) (bool, bool)

func (*Enverant) GetInt

func (e *Enverant) GetInt(key string, opts ...ValueOption) int

func (*Enverant) GetIntOr

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

func (*Enverant) GetInteger added in v0.17.0

func (e *Enverant) GetInteger(key string, opts ...ValueOption) (int, bool)

func (*Enverant) GetPtrBool added in v0.17.0

func (e *Enverant) GetPtrBool(key string, opts ...ValueOption) *bool

func (*Enverant) GetPtrInt added in v0.17.0

func (e *Enverant) GetPtrInt(key string, opts ...ValueOption) *int

func (*Enverant) GetPtrStr added in v0.17.0

func (e *Enverant) GetPtrStr(key string, opts ...ValueOption) *string

func (*Enverant) GetStr

func (e *Enverant) GetStr(key string, opts ...ValueOption) string

func (*Enverant) GetStrOr

func (e *Enverant) GetStrOr(key string, default_ string, opts ...ValueOption) string

func (*Enverant) GetString added in v0.17.0

func (e *Enverant) GetString(key string, opts ...ValueOption) (string, bool)

func (*Enverant) GetValidating added in v0.17.1

func (m *Enverant) GetValidating() *Enverant

type EnverantOption

type EnverantOption func(m *Enverant)

func WithEnvFile

func WithEnvFile(path string) EnverantOption

func WithValidate added in v0.17.0

func WithValidate(validate bool) EnverantOption

type ValueOption added in v0.17.0

type ValueOption func(m *ValueParams)

func OrBool added in v0.17.0

func OrBool(default_ bool) ValueOption

func OrInt added in v0.17.0

func OrInt(default_ int) ValueOption

func OrStr added in v0.17.0

func OrStr(default_ string) ValueOption

type ValueParams added in v0.17.0

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

Jump to

Keyboard shortcuts

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