config

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

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

Go to latest
Published: Jul 17, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version string
)

Functions

func Open

func Open() error

Types

type Config

type Config struct {
	Name           string                 `toml:"name"`
	Email          string                 `toml:"email"`
	SSHPubKey      string                 `toml:"ssh_pub_key"`
	TemplateMap    map[string]string      `toml:"template-map"`
	PlaceholderMap map[string]interface{} `toml:"placeholder-map"`
}

func Get

func Get() *Config

func (*Config) IsEmpty

func (c *Config) IsEmpty() bool

func (*Config) Save

func (c *Config) Save() error

func (*Config) String

func (c *Config) String() string

Jump to

Keyboard shortcuts

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