config

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2017 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultConfigDir

func GetDefaultConfigDir() (dir string, err error)

Types

type Config

type Config struct {
	General GeneralConfig
	Gist    GistConfig
}

Config is a struct of config

var Conf Config

Conf is global config variable

func (*Config) Load

func (cfg *Config) Load(file string) error

type FlagConfig

type FlagConfig struct {
	Debug     bool
	Query     string
	Delimiter string
	Upload    bool
	OneLine   bool
	Color     bool
	Tag       bool
}

FlagConfig is a struct of flag

var Flag FlagConfig

Flag is global flag variable

type GeneralConfig

type GeneralConfig struct {
	SnippetFile string `toml:"snippetfile"`
	Editor      string `toml:"editor"`
	Column      int    `toml:"column"`
	SelectCmd   string `toml:"selectcmd"`
}

type GistConfig

type GistConfig struct {
	FileName    string `toml:"file_name"`
	AccessToken string `toml:"access_token"`
	GistID      string `toml:"gist_id"`
	Public      bool   `toml:"public"`
}

Jump to

Keyboard shortcuts

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