config

package
v0.0.0-...-03485e9 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 2 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 {
	ServerHost string `default:"" split_words:"true"`
	ServerPort string `default:"8080" split_words:"true"`
}

Config contains the config values for the application.

func New

func New() (*Config, error)

New parses config from environment variables and returns an instance of config or an error.

Jump to

Keyboard shortcuts

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