Documentation
¶
Index ¶
- func CurrentTimestamp() int64
- func StringifyBytes(data []byte) string
- type PathBuilder
- func (inst *PathBuilder) AppendPath(path string) *PathBuilder
- func (inst *PathBuilder) AppendSimpleName(simpleName string) *PathBuilder
- func (inst *PathBuilder) AppendSimpleNameList(list []string) *PathBuilder
- func (inst *PathBuilder) Create(prefix string, suffix string) (string, error)
- func (inst *PathBuilder) EnableRoot(enable bool) *PathBuilder
- func (inst *PathBuilder) EnableTrim(enable bool) *PathBuilder
- func (inst *PathBuilder) IgnoreDoubleDot(enable bool) *PathBuilder
- func (inst *PathBuilder) SetSeparator(sep string) *PathBuilder
- func (inst *PathBuilder) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentTimestamp ¶ added in v0.0.41
func CurrentTimestamp() int64
CurrentTimestamp 返回当前的时间戳,基于1970-01-01_00:00:00,单位:ms
func StringifyBytes ¶
Types ¶
type PathBuilder ¶ added in v0.0.16
type PathBuilder struct {
// contains filtered or unexported fields
}
func (*PathBuilder) AppendPath ¶ added in v0.0.16
func (inst *PathBuilder) AppendPath(path string) *PathBuilder
func (*PathBuilder) AppendSimpleName ¶ added in v0.0.16
func (inst *PathBuilder) AppendSimpleName(simpleName string) *PathBuilder
func (*PathBuilder) AppendSimpleNameList ¶ added in v0.0.16
func (inst *PathBuilder) AppendSimpleNameList(list []string) *PathBuilder
func (*PathBuilder) Create ¶ added in v0.0.16
func (inst *PathBuilder) Create(prefix string, suffix string) (string, error)
func (*PathBuilder) EnableRoot ¶ added in v0.0.16
func (inst *PathBuilder) EnableRoot(enable bool) *PathBuilder
func (*PathBuilder) EnableTrim ¶ added in v0.0.16
func (inst *PathBuilder) EnableTrim(enable bool) *PathBuilder
func (*PathBuilder) IgnoreDoubleDot ¶ added in v0.0.40
func (inst *PathBuilder) IgnoreDoubleDot(enable bool) *PathBuilder
func (*PathBuilder) SetSeparator ¶ added in v0.0.16
func (inst *PathBuilder) SetSeparator(sep string) *PathBuilder
func (*PathBuilder) String ¶ added in v0.0.16
func (inst *PathBuilder) String() string
Click to show internal directories.
Click to hide internal directories.