1 Star 0 Fork 0

GoAdmin/admin-core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
config
encoder
loader
reader
json
options.go
preprocessor.go
preprocessor_test.go
reader.go
secrets
source
README.md
config.go
default.go
default_test.go
options.go
value.go
debug
errors
logger
server
storage
tools
.gitignore
LICENSE
README.en.md
README.md
go.mod
克隆/下载
reader.go 908 Bytes
一键复制 编辑 原始数据 按行查看 历史
GoAdmin 提交于 3年前 . test
// Package reader parses change sets and provides config values
package reader
import (
"time"
"github.com/go-admin-team/go-admin-core/config/source"
)
// Reader is an interface for merging changesets
type Reader interface {
Merge(...*source.ChangeSet) (*source.ChangeSet, error)
Values(*source.ChangeSet) (Values, error)
String() string
}
// Values is returned by the reader
type Values interface {
Bytes() []byte
Get(path ...string) Value
Set(val interface{}, path ...string)
Del(path ...string)
Map() map[string]interface{}
Scan(v interface{}) error
}
// Value represents a value of any type
type Value interface {
Bool(def bool) bool
Int(def int) int
String(def string) string
Float64(def float64) float64
Duration(def time.Duration) time.Duration
StringSlice(def []string) []string
StringMap(def map[string]string) map[string]string
Scan(val interface{}) error
Bytes() []byte
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/GoAdminCore/admin-core.git
git@gitee.com:GoAdminCore/admin-core.git
GoAdminCore
admin-core
admin-core
v1.0.0

搜索帮助