config

package
v0.0.0-...-b335a3f Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 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 {
	Server   string `envconfig:"MYAPP_host"`
	Port     string `envconfig:"MYAPP_port,default=1433"`
	Username string `envconfig:"MYAPP_username"`
	Password string `envconfig:"MYAPP_password"`
	Database string `envconfig:"MYAPP_database"`
}

Config struct to hold the app config

func GetConfig

func GetConfig() Config

AppConfig returns the current AppConfig

Jump to

Keyboard shortcuts

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