conf

package
v0.0.0-...-be570d4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(fp string) error

Load loads a yaml file into the C configuration struct

Types

type Conf

type Conf struct {
	Host  string `yaml:"host"`
	Port  int    `yaml:"port"`
	Debug bool   `yaml:"debug"`
}

Conf holds the configuration structure

var C Conf

C is the main configuration exported

func (*Conf) Defaults

func (c *Conf) Defaults() error

Defaults fills the configuration with some sane defaults

Jump to

Keyboard shortcuts

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