config

package
v0.0.0-...-ec68dae Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig()

LoadConfig 从 JSON 文件加载配置

Types

type AppConfig

type AppConfig struct {
	TriliumApiUrl   string `json:"triliumApiUrl"`
	TriliumToken    string `json:"triliumToken"`
	ArticlesPerPage int    `json:"articlesPerPage"`
	BlogName        string `json:"blogName"`
	BlogTitle       string `json:"blogTitle"`
	Domain          string `json:"domain"`
}

AppConfig 存储应用程序的所有配置

var Config AppConfig

Config 是全局配置变量

Jump to

Keyboard shortcuts

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