config

package
v3.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const EnvPrefix = "CLOUD_GAME"

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(config any, path string) error

LoadConfig loads a configuration file into the given struct. The path param specifies a custom path to the configuration file. Reads and puts environment variables with the prefix CLOUD_GAME_. Params from the config should be in uppercase separated with _.

func LoadConfigEnv

func LoadConfigEnv(config any) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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