config

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v0.6.0-beta-20211122"

Variables

View Source
var ConfigName = "config.json"
View Source
var DefaultConfigDirPath = path.Join(HomeDirPath, configDirName)
View Source
var DefaultConfigPath = path.Join(HomeDirPath, configDirName, ConfigName)
View Source
var HomeDirPath, _ = homedir.Dir()

Functions

func GetVersion

func GetVersion() (v string)

func NewConfigPathService

func NewConfigPathService() (svc interfaces.WithConfigPath)

Types

type Config

type Config struct {
	Name string
}

func (*Config) Init

func (c *Config) Init() error

func (*Config) WatchConfig

func (c *Config) WatchConfig()

type InitConfigOptions

type InitConfigOptions struct {
	Name string
}

type PathService

type PathService struct {
	// contains filtered or unexported fields
}

func (*PathService) GetConfigPath

func (svc *PathService) GetConfigPath() (path string)

func (*PathService) SetConfigPath

func (svc *PathService) SetConfigPath(path string)

Jump to

Keyboard shortcuts

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