configs

package
v0.0.0-...-7d25a1b Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectName = "gsp2md"
)

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(path string) (err error)

Types

type ConfigInfo

type ConfigInfo struct {
	Error error
}
var (
	GlobalConfig ConfigInfo = ConfigInfo{}
)

type Gsp2MdConfig

type Gsp2MdConfig struct {
	GoogleSpreadsheets struct {
		Client string `mapstructure:"client-id"`
		Secret string `mapstructure:"client-secret"`
	} `mapstructure:"gs"`
	Input []struct {
		Url    string   `mapstructure:"url"`
		Ranges []string `mapstructure:"ranges"`
	} `mapstructure:"in"`
	Output []struct {
		Type string `mapstructure:"type"`
		Name string `mapstructure:"name"`
	} `mapstructure:"out"`
}

func LoadGsp2MdConfig

func LoadGsp2MdConfig() (cfg *Gsp2MdConfig, err error)

Jump to

Keyboard shortcuts

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