config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init 使用 ./application.toml 初始化全局配置

func InitWithContent

func InitWithContent(configTOMLContent []byte)

InitWithContent 从字节数组中读取配置内容

Types

type BotConfig

type BotConfig struct {
	Account  uint32 `toml:"account"`
	Password string `toml:"password"`
}

BotConfig 代表TOML文件中的bot部分

type Config

type Config struct {
	Bot BotConfig
}
var GlobalConfig *Config

GlobalConfig 默认全局配置

Jump to

Keyboard shortcuts

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