Documentation ¶
Overview ¶
Package sdload 从文件或远程加载数据
Index ¶
- func Bytes(loc string) ([]byte, error)
- func JSON[T any](loc string) (T, error)
- func RegisterLoader(scheme string, loader Loader)
- func TOML[T any](loc string) (T, error)
- func Text(loc string) (string, error)
- func TextDef(loc, def string) string
- func YAML[T any](loc string) (T, error)
- type Loader
- type LoaderFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLoader ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.