config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(currentPath string, configPath string)

Types

type Config

type Config struct {
	Log struct {
		LevelStdout string `config:"LOG_LEVEL_STDOUT" yaml:"levelStdout"`
		PathFile    string `config:"LOG_PATH_FILE" yaml:"pathFile"`
		LevelFile   string `config:"LOG_LEVEL_FILE" yaml:"levelFile"`
	} `yaml:"log"`
	Build struct {
		ExtensionExclude string `config:"BUILD_EXTENSION_EXCLUDE" yaml:"extensionExclude"`
	} `yaml:"build"`
	Template struct {
		ImagePath string `config:"TEMPLATE_IMAGE_PATH" yaml:"imagePath"`
		IndexPath string `config:"TEMPLATE_INDEX_PATH" yaml:"indexPath"`
	} `yaml:"template"`
	CurrentPath string
	Version     string
	Commit      string
}

func Get

func Get() Config

Jump to

Keyboard shortcuts

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