config

package
v0.0.0-...-f87157e Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Default = `
debug: true
database:
  url: mongodb://127.0.0.1:27017
`

Default represents default configuration in YAML format with 2-space

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug    bool
	Database struct {
		URL string
	}
}

Config holds all tm component configurations

func New

func New() Config

New reads configuration with viper

Jump to

Keyboard shortcuts

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