config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(filename string) error

LoadConfig load configuration file

func LoadTestConfig

func LoadTestConfig()

LoadTestConfig just for test

Types

type Configuration

type Configuration struct {
	RootDir string // conf root directory
	Nats    struct {
		Url string
	}
	Mail struct {
		SchemaDir string
	}
}
var G *Configuration

G Global config instance

Jump to

Keyboard shortcuts

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