settings

package
v0.0.0-...-acac986 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const EnvFile string = ".env"

EnvFile must be set to the address of the main .env file.

Variables

View Source
var ConnStr string = params.connStr

ConnStr exposes the connection string to the database.

View Source
var Port = params.port

Port exposes the port where the application is served.

View Source
var TmplDir string = params.tmplDir

TmplDir exposes the address of the templates folder.

Functions

This section is empty.

Types

type Params

type Params struct {
	// contains filtered or unexported fields
}

Params struct holds the application settings parameters

func NewParams

func NewParams(f string) Params

NewParams reads env file then initialize a new Params object

Jump to

Keyboard shortcuts

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