config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig added in v1.0.1

func LoadConfig()

func SaveConfig added in v1.0.1

func SaveConfig() error

Types

type Config

type Config struct {
	Debug   bool      `toml:"debug"`
	Servers []*Server `toml:"servers"`
}
var Conf Config

type Server

type Server struct {
	Ip       string `toml:"ip"`
	Port     int64  `toml:"port"`
	Interval int64  `toml:"interval"`
	Remark   string `toml:"remark"`
}

Jump to

Keyboard shortcuts

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