environment

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct{}

func (Provider) GetBool

func (p Provider) GetBool(appName, section, name string) (bool, error)

GetBool gets bool from environment variable for specified parameters.

func (Provider) GetFloat

func (p Provider) GetFloat(appName, section, name string) (float64, error)

GetFloat gets float from environment variable for specified parameters.

func (Provider) GetInt

func (p Provider) GetInt(appName, section, name string) (int, error)

GetInt gets int from environment variable for specified parameters.

func (Provider) GetString

func (p Provider) GetString(appName, section, name string) (string, error)

GetString gets string from environment variable for specified parameters.

Jump to

Keyboard shortcuts

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