setup

package
v0.0.0-...-e4de639 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = struct {
	ChannelBot struct {
		Enable string `yaml:"enable"`
		Appid  string `yaml:"appid"`
		Token  string `yaml:"token"`
	} `yaml:"channelBot"`

	LogLevel string `yaml:"logLevel,omitempty"`
	GroupBot struct {
		Enable    string `yaml:"enable"`
		VerifyKey string `yaml:"verifyKey"`
		BotQQ     string `yaml:"botQQ"`
		BotGroup  string `yaml:"botGroup"`
		BaseUrl   string `yaml:"baseUrl"`
	} `yaml:"groupBot"`
	Test struct {
		AA string `yaml:"aa"`
	} `yaml:"test"`
}{
	LogLevel: "debug",
}
View Source
var MessageChannel = make(chan string)

Functions

func GetAbsolutePath

func GetAbsolutePath(filePath string) (absolutePath string)

GetAbsolutePath 获取从程序根路径开始的绝对路径

Types

This section is empty.

Jump to

Keyboard shortcuts

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