config

package
v0.0.0-...-4f7e2d9 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MulanPSL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilePaths

type FilePaths struct {
	RootPath   string
	EtcPath    string
	LogPath    string
	DataPath   string
	LibPath    string
	BinPath    string
	PluginPath string
}

func GetGlobalPath

func GetGlobalPath() *FilePaths

type GloabelConfig

type GloabelConfig struct {
	Name        string      `yaml:"name"`
	Version     string      `yaml:"version"`
	Description string      `yaml:"description"`
	Author      string      `yaml:"author"`
	License     string      `yaml:"license"`
	Url         string      `yaml:"homepage"`
	Md5         string      `yaml:"md5"`
	Config      interface{} `yaml:"config"`
}

func InitGlobalConfig

func InitGlobalConfig() *GloabelConfig

Jump to

Keyboard shortcuts

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