conf

package
v1.108.21 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package conf is visor's ONE configuration reader. It replaces Beego's global AppConfig with a small, dependency-light loader: conf/app.conf is parsed once (ini format), each value's ${VAR||default} form is expanded against the environment exactly as Beego did, and lookups fall through env → file → built-in default. A direct process env var named for the key still wins, so a deployment overrides any setting without touching the file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfPath added in v1.108.15

func ConfPath() string

ConfPath returns the resolved app.conf path (or "" if none was found) — used by callers that log where config came from.

func GetConfigBool

func GetConfigBool(key string) bool

func GetConfigDataSourceName

func GetConfigDataSourceName() string

func GetConfigString

func GetConfigString(key string) string

func GetLanguage

func GetLanguage(language string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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