config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Address:     "127.0.0.1",
	Port:        "8080",
	StaticDir:   "./dist",
	IndexFile:   "index.html",
	RoutingMode: "regex",
	KeyFile:     "",
	CertFile:    "",
}

Functions

func Opt added in v1.2.0

func Opt[T comparable](v []T, def ...T) T

func Parse added in v1.2.0

func Parse[T comparable](cfgFile string, envPrefix string, def ...T) (cfg T, err error)

Types

type Config

type Config struct {
	Address string
	Port    string

	StaticDir string
	IndexFile string

	RoutingMode string

	KeyFile  string
	CertFile string
}

Jump to

Keyboard shortcuts

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