config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefault

func NewDefault() error

DefaultConfig returns a fully initialized(? maybe not the best word) configuration.

Types

type Config

type Config struct {
	Imports []string `koanf:"imports"`
	Project struct {
		Name        string `koanf:"name"`
		Description string `koanf:"description"`
	} `koanf:"project"`
	RepositoryURL string `koanf:"repository_url"`
}

Config is the complete representation of the configuration, it is authoritative on configuration names, hierarchy, structure and type.

func LoadFile

func LoadFile() (*Config, error)

LoadFile retrieves values from filePath configuration file.

Jump to

Keyboard shortcuts

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