config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package config implements the ConfigContainer structure and accompanying methods. It holds the configuration data for all utilities. Configuration file format is the same for all.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigContainer

type ConfigContainer struct {
	Prefix       string            // if this is set, then we prepend this path to all commands
	Binpaths     map[string]string // else, we specify one by one
	Tick         uint
	TemplateDirs []string
}

func NewConfigContainer

func NewConfigContainer() *ConfigContainer

func (*ConfigContainer) DumpConfig

func (cc *ConfigContainer) DumpConfig() string

func (*ConfigContainer) GetConfig

func (cc *ConfigContainer) GetConfig() error

Read & unmarshall configuration from 'name' file into configContainer structure

func (*ConfigContainer) GetTick

func (cc *ConfigContainer) GetTick() time.Duration

Jump to

Keyboard shortcuts

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