conf

package
v0.0.0-...-379af47 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFile = "./hiupdate.conf"

ConfigFile is default config file path

Variables

View Source
var (

	// OptionsReady is a loaded object containing fields in config file.
	// Using defaults if not set.
	OptionsReady = &Options{}
)

Functions

This section is empty.

Types

type Options

type Options struct {
	Port   int    `hcl:"port"`
	DBFile string `hcl:"db"`
}

Options is the structure for config file.

func NewOptions

func NewOptions() *Options

NewOptions returns new config

func (*Options) Load

func (p *Options) Load() error

Load loads options from config file

Jump to

Keyboard shortcuts

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