config

package
v0.0.0-...-ccca5b4 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Path    string `json:"-"`
	BaseURL string `json:"baseURL"`
	Token   string `json:"token"`
}

func FromFile

func FromFile(path string) (*Config, error)

func FromRaw

func FromRaw(data []byte) (*Config, error)

func (*Config) Save

func (c *Config) Save() error

func (*Config) SaveTo

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

Jump to

Keyboard shortcuts

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