env

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: MIT Imports: 11 Imported by: 0

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 Env

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

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

Jump to

Keyboard shortcuts

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