mirror of
https://github.com/skyle1995/NetworkAuth.git
synced 2026-05-25 02:24:05 +08:00
Add classification annotations
This commit is contained in:
@@ -13,6 +13,10 @@ import (
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
// ============================================================================
|
||||
// 公共函数
|
||||
// ============================================================================
|
||||
|
||||
// ValidateConfig 验证配置
|
||||
func ValidateConfig() (*AppConfig, error) {
|
||||
var config AppConfig
|
||||
@@ -31,6 +35,10 @@ func ValidateConfig() (*AppConfig, error) {
|
||||
return &config, nil
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// 私有函数
|
||||
// ============================================================================
|
||||
|
||||
// validateConfig 验证配置
|
||||
func validateConfig(config *AppConfig) error {
|
||||
// 验证服务器配置
|
||||
|
||||
Reference in New Issue
Block a user