config

package
v0.0.0-...-a01399d Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 4 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 {
	FilePath string `envconfig:"FILE_PATH"`

	Addr  string `envconfig:"SRV_ADDR"`
	Port1 int    `envconfig:"SRV_PORT1"`
	Port2 int    `envconfig:"SRV_PORT2"`
}

func NewConfig

func NewConfig() *Config

NewConfig reads config from environment.

Jump to

Keyboard shortcuts

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