config

package
v0.0.0-...-f74c3a8 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Environment   string `default:"dev"`
	LogLevel      string `default:"info" split_words:"true"`
	ListenAddress string `default:":8080" split_words:"true"`
	ErrorMessage  string `default:"This field is read-only." split_words:"true"`
}

func Load

func Load() (*Config, error)

func (*Config) IsDevEnv

func (cfg *Config) IsDevEnv() bool

Jump to

Keyboard shortcuts

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