Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
func Convert[T any](env *Environment, name string) T
func Get ¶
func Get[T any](env *Environment, name string) T
func GetInterface ¶
func GetInterface(env *Environment, name string) interface{}
func GetString ¶
func GetString(env *Environment, name string) string
Types ¶
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
func New ¶
func New(emb embed.FS) *Environment
func (*Environment) Get ¶
func (e *Environment) Get(name string) string
Click to show internal directories.
Click to hide internal directories.