config

package
v0.0.0-...-9d2ce88 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEFAULT_DEV_ENV_FILE string
View Source
var DEFAULT_ENV_FILE string = `T_STD=
T_RUNTIME=
`

TODO: properly map these paths to user

View Source
var DEV bool
View Source
var TELIA_CONFIG_DIR string

Functions

func MapEnvToStruct

func MapEnvToStruct(data map[string]string, result any) error

func SetDevMode

func SetDevMode(v bool)

func SetupConfigDir

func SetupConfigDir() error

func SetupEnvFile

func SetupEnvFile() error

Types

type BuildOptimizationType

type BuildOptimizationType int
const (
	BUILD_OPT_RELEASE BuildOptimizationType = iota
	BUILD_OPT_DEBUG
)

func (BuildOptimizationType) String

func (bt BuildOptimizationType) String() string

type Envs

type Envs struct {
	STD     string `env:"T_STD_PATH"`
	RUNTIME string `env:"T_RUNTIME_PATH"`
}
var ENVS *Envs

func (*Envs) ShowAll

func (e *Envs) ShowAll()

Jump to

Keyboard shortcuts

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