cfg

package
v1.0.0-rc.10 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default types.Config

Default holds the global application configuration instance

Functions

func DefaultPath

func DefaultPath(app string) string

DefaultPath returns the default configuration path

func GlobalPath

func GlobalPath(app string) string

GlobalPath returns the global configuration path

func HomePath

func HomePath(app string) string

HomePath returns the configuration path for the users home

func Initialize

func Initialize()

Initialize construct the default configuration object using viper. Ths function must be called once all CLI flags and configuration files has been parsed.

Types

type Media added in v1.0.0

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

Media is a configuration object for media collections

func (*Media) Directory added in v1.0.0

func (m *Media) Directory() string

Directory returns the directory whe the media is located

func (*Media) Template added in v1.0.0

func (m *Media) Template() *template.Template

Template returns the template for renaming the media

Jump to

Keyboard shortcuts

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