settings

package
v0.0.0-...-55d16bb Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TemplateExtension = ".bt"
	ScssSuffix        = ".scss"

	DefaultSettingsFileName = "settings.toml"

	// If this prefix is set to string values, then
	// the value is obtained from the environment variables.
	ParseEnvVarPrefix = "ENV:"

	// The socket types
	TypeTcpSocket  SocketType = 1 << iota
	TypeUnixSocket SocketType = 1 << iota

	// Static URL paths
	UrlPublic             = "/public/"
	UrlBulldozerResources = "/bulldozer/res/"
)

Variables

View Source
var (
	Settings settings
)

Functions

func Load

func Load(path string) error

Load loads the settings file.

func Prepare

func Prepare() error

Prepare checks if the settings are correct and valid and initializes some values.

Types

type SocketType

type SocketType int

Jump to

Keyboard shortcuts

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