cfg

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 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

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

Media is a configuration object for media collections

func (*Media) Directory

func (m *Media) Directory() string

Directory returns the directory whe the media is located

func (*Media) Template

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