conf

package
v0.0.0-...-dabee0d Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Development = "development"
	Test        = "test"
	Production  = "production"
)

Variables

This section is empty.

Functions

func BuildTemplateCache

func BuildTemplateCache() (map[string]*template.Template, error)

func GetRootDir

func GetRootDir() (string, error)

func GetSession

func GetSession() *scs.SessionManager

func GetTemplates

func GetTemplates() map[string]*template.Template

func Init

func Init() error

func InitEnv

func InitEnv() error

func InitSessionManager

func InitSessionManager()

Types

type Env

type Env struct {
	AppEnv      string
	Port        string
	DatabaseURL string
	Seed        bool
}

func GetEnv

func GetEnv() *Env

Jump to

Keyboard shortcuts

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