config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DataDir       string `yaml:"dataDir"`
	RemoteBaseUrl string `yaml:"remoteBaseUrl"`
	UseShow       bool   `yaml:"useShow"`
	UseLess       bool   `yaml:"useLess"`
}

配置结构体,包含数据目录和远程数据源 DataDir: 本地数据存储目录 RemoteBaseUrl: 远程命令数据源地址

var GlobalConfig *Config // 全局配置实例

func ParseConfig

func ParseConfig() *Config

解析配置并设置全局变量

Jump to

Keyboard shortcuts

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