config

package
v0.0.0-...-73d97a9 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CfgManager

type CfgManager struct {
	ConfigFileName string
	DefaultConfig  Config
}

func NewCfgManager

func NewCfgManager() *CfgManager

func (*CfgManager) GetConfig

func (cm *CfgManager) GetConfig(rcDepth int) (*Config, error)

func (*CfgManager) WriteConfig

func (cm *CfgManager) WriteConfig(params interface{}) (*Config, error)

type Config

type Config struct {
	AccessToken string `json:"access_token" yaml:"access_token"`
	Editor      string `json:"editor" yaml:"editor"`
	Alias       string `json:"alias" yaml:"alias"`
	Tmux        bool   `json:"tmux" yaml:"tmux"`
}

Jump to

Keyboard shortcuts

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