config

package
v0.0.0-...-22c784e Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 8 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 {
	Website    website    `toml:"website"`
	Repository repository `toml:"repository"`
	Server     server     `toml:"server"`
	Mysql      mysql      `toml:"mysql"`
}

Config provides the configurations for the application.

func New

func New() (cfg *Config, err error)

New creates a Config with the default config.toml file, which then overwritten by local custom config.toml file.

Jump to

Keyboard shortcuts

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