config

package
v0.0.0-...-8ce6904 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_CONFIG_PATH = "config.toml"
)

Variables

View Source
var (
	ConfPath string
	Params   *Config
)

Functions

func ParseConfigFile

func ParseConfigFile()

Types

type Config

type Config struct {
	Dest []Destination `toml:"destinations"`
}

func (*Config) ChangeParams

func (c *Config) ChangeParams(dest, param string, value interface{})

func (*Config) GetDestination

func (c *Config) GetDestination(name string) *Destination

func (*Config) SaveFile

func (c *Config) SaveFile(path string) error

type Destination

type Destination struct {
	Name string
	Path string
	Api  string
}

Jump to

Keyboard shortcuts

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