Documentation ¶
Overview ¶
* @Descripttion: 配置解析器 * @version: * @Author: lfzxs@qq.com * @Date: 2023-06-19 10:22:18 * @LastEditors: lfzxs@qq.com * @LastEditTime: 2023-06-21 14:11:42
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type YamlConfig ¶
type YamlConfig struct { Data map[string]any Loader loader.LoaderService Resolver resolver.ResolverService URI string }
func DefaultConfig ¶
func DefaultConfig() *YamlConfig
func FromFile ¶
func FromFile(filePath string) (cfg YamlConfig, err error)
func FromFolders ¶
func FromFolders(fileName string, searchFolds ...string) (cfg YamlConfig, err error)
Click to show internal directories.
Click to hide internal directories.