config

package
v0.64.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package config is used to configure the application.

Index

Constants

This section is empty.

Variables

View Source
var ParseAndLoadSource func(app string)

ParseAndLoadSource is used to parse and load the options from some sources.

Default: use "flag" to parse and load the options from the CLI arguments.

Functions

func Init added in v0.58.0

func Init(app, version string, opts ...gconf.Opt)

Init initializes the configuration, which will set the version, register the options, parse the CLI arguments with "flag", load the "flag", "env" and "file" configuration sources.

Types

This section is empty.

Jump to

Keyboard shortcuts

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