config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

InitConfig loads the first .env file found and makes its values available to viper below command-line flags. Having no .env file is normal and silent.

Types

type Config

type Config struct {
	Port      string `mapstructure:"port"`
	DataDir   string `mapstructure:"data-dir"`
	ExtraArgs string `mapstructure:"extra-args"`
}
var AppConfig Config

Jump to

Keyboard shortcuts

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