Documentation ¶
Index ¶
- func CheckModuleVersion(mods ...application.Module) error
- func ComputeFileSHA256sum(file fs.Path) (util.Hex, error)
- func ComputeFileSHA256sumAFS(file afs.Path) (util.Hex, error)
- func ComputeSHA256sum(data []byte) util.Hex
- func CopyFile(src, dst afs.Path, writeOption *afs.Options) (int64, error)
- func GetFileURI(p afs.Path) string
- func InterfaceIsNil(i any) bool
- func IsAbsolutePath(path string) bool
- func NormalizeHex(sum util.Hex) util.Hex
- func Unzip(src afs.Path, dst afs.Path) error
- type ErrorList
- type GinUtils
- type PathBuilder
- type PropertiesUtil
- type SortAdapter
- type SortFn
- type Strings
- type URLBuilder
- type URLResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckModuleVersion ¶ added in v0.0.12
func CheckModuleVersion(mods ...application.Module) error
CheckModuleVersion 检查各个模块的版本是否一致,如果不是就返回错误
func ComputeFileSHA256sum ¶
ComputeFileSHA256sum ...
func ComputeFileSHA256sumAFS ¶ added in v0.0.14
ComputeFileSHA256sumAFS ...
func ComputeSHA256sum ¶ added in v0.0.14
ComputeSHA256sum ...
func IsAbsolutePath ¶ added in v0.1.2
IsAbsolutePath 判断是否为(本地)绝对路径
func NormalizeHex ¶ added in v0.1.8
NormalizeHex 标准化 hex 的格式
Types ¶
type ErrorList ¶ added in v0.1.1
type ErrorList struct {
// contains filtered or unexported fields
}
ErrorList 表示一个可以包含多个错误的列表
type GinUtils ¶ added in v0.0.14
type GinUtils struct{}
GinUtils ...
type PathBuilder ¶ added in v0.1.2
type PathBuilder struct {
// contains filtered or unexported fields
}
PathBuilder ...
func (*PathBuilder) Append ¶ added in v0.1.2
func (inst *PathBuilder) Append(list ...string) *PathBuilder
Append ...
func (*PathBuilder) CreateAbsolute ¶ added in v0.1.2
func (inst *PathBuilder) CreateAbsolute() string
CreateAbsolute ...
func (*PathBuilder) Init ¶ added in v0.1.2
func (inst *PathBuilder) Init(p string) *PathBuilder
Init ...
func (*PathBuilder) Normalize ¶ added in v0.1.2
func (inst *PathBuilder) Normalize() error
Normalize 执行标准化
type PropertiesUtil ¶ added in v0.1.0
type PropertiesUtil struct{}
PropertiesUtil ...
func (*PropertiesUtil) GetNameList ¶ added in v0.1.0
func (inst *PropertiesUtil) GetNameList(src collection.Properties, prefix string, suffix string) []string
GetNameList 读取 src 中,通过 prefix 和 suffix 指定类型的名单
type SortAdapter ¶ added in v0.1.2
type SortAdapter struct { SortFn Quietly bool // 出现异常时,不要抛出 panic // contains filtered or unexported fields }
SortAdapter ...排序适配器
func (*SortAdapter) Len ¶ added in v0.1.2
func (inst *SortAdapter) Len() int
func (*SortAdapter) Less ¶ added in v0.1.2
func (inst *SortAdapter) Less(i1, i2 int) bool
func (*SortAdapter) Swap ¶ added in v0.1.2
func (inst *SortAdapter) Swap(i1, i2 int)
type Strings ¶ added in v0.1.1
type Strings struct{}
Strings 一组面向字符串的工具
func (*Strings) TrimToLower ¶ added in v0.1.1
TrimToLower 移除两端空白,并准换为小写字符
type URLBuilder ¶ added in v0.1.2
type URLBuilder struct { Protocol string User string Host string Port int Path string Query string Fragment string }
URLBuilder 一个简单的URL创建工具
type URLResolver ¶ added in v0.1.2
type URLResolver struct {
// contains filtered or unexported fields
}
URLResolver 是一个简单的URL解析器,如果可以,把相对URL解析为绝对URL
func (*URLResolver) ForDocument ¶ added in v0.1.2
func (inst *URLResolver) ForDocument(url string) *URLResolver
ForDocument 设置参考文档的URL
func (*URLResolver) Resolve ¶ added in v0.1.2
func (inst *URLResolver) Resolve(url string) string
Resolve 解析传入的URL
Source Files ¶
Click to show internal directories.
Click to hide internal directories.