config

package
v0.0.0-...-fafd440 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DB      DbConfig      `yaml:"db"`
	Version string        `yaml:"version"`
	Greeter GreeterConfig `yaml:"greeter"`
}

Config ...

func LoadConfig

func LoadConfig(filename string) *Config

LoadConfig ...

type DbConfig

type DbConfig struct {
	Type   string `yaml:"type"`
	Driver string `yaml:"driver"`
	Conn   string `yaml:"conn"`
}

DbConfig ...

type GreeterConfig

type GreeterConfig struct {
	Version string `yaml:"version"`
}

GreeterConfig ...

Jump to

Keyboard shortcuts

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