conf

package
v0.0.0-...-99df684 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config *model.Config

Config perpetua config.yml

View Source
var Version = "unknown"

Version 版本信息,在编译时使用ldflags进行覆盖

Functions

func Init

func Init()

Init method should be invoked manually after global.ParentPath be set

func LoadConfig

func LoadConfig(fileName string, fileFolder string, kind string, fs embed.FS, config any) (bool, error)

LoadConfig creat and load config, return exists(file) kind: json / yaml

Types

This section is empty.

Jump to

Keyboard shortcuts

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