configutil

package
v1.1.40 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Provides utilities to setup application's global configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfigFromFile

func LoadConfigFromFile(file string) (*config.Config, error)

LoadConfigFromFile tries to add content of the YAML file to the config.Config.

func LoadFromEnv added in v1.1.22

func LoadFromEnv() *config.Config

LoadFromEnv loads environment variables into the new config.Config and returns it. This function loads all environment variables available to the process and converts them into hierarchical structure. Underscore symbol '_' is used to split variable name into keys, which are also converted to lowercase. For example: "VAR_NAME" will become: var.name

Types

This section is empty.

Jump to

Keyboard shortcuts

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