conf

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MIT, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPath = "./configs/config.yml"
)

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(filePath string)

LoadConfig sets the config pointer.

Types

type Config

type Config struct {
	Server Server `yaml:"server"`
}

func GetConfig

func GetConfig() Config

GetConfig returns the config pointer.

type Server

type Server struct {
	Mode     string `yaml:"mode"`
	HttpAddr string `yaml:"http_addr"`
}

Jump to

Keyboard shortcuts

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