myconfig

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format()

func Load

func Load()

Types

type MyConfig

type MyConfig struct {
	MyRoot    string
	MyExample MyExampleConfig
}

type MyExampleConfig

type MyExampleConfig struct {
	MyInt     int
	MyString  string
	MyDefault string
	MyDash    string `mapstructure:"my-dash"` // dash issue https://stackoverflow.com/questions/51228423/how-to-unmarshall-viper-config-to-struct-with-dash-character
}

Jump to

Keyboard shortcuts

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