conf

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigPath = getConfigPath()
View Source
var Default = frozenDefault.Clone()

Functions

func Close

func Close() error

func Init

func Init()

Types

type Config

type Config struct {
	Addr        string   `argx:"addr" environ:"ADDR" usage:"Listen address"`
	Program     string   `argx:"p" usage:"Debugger program"`
	ProcessArgs []string `argx:"pa" usage:"Debugger program arguments"`
	Debug       bool     `argx:"debug" environ:"DEBUG" usage:"Debug logging"`
}

func (*Config) Clone

func (c *Config) Clone() *Config

Clone is not implementing deep-copy

func (*Config) LinkIn

func (c *Config) LinkIn()

LinkIn called by go-binder.

func (*Config) Validate

func (c *Config) Validate() error

Validate configuration

type MultiValue

type MultiValue string

Jump to

Keyboard shortcuts

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