Documentation ¶
Index ¶
- func AllinStrings(ss []string, ins []string) bool
- func Extension(name string) string
- func InStrings(s string, ins []string) bool
- func Ip2Num(ip string) int64
- func Md5(str string) string
- func Md5File(file string) string
- func MergeString(args ...string) string
- func Num2Ip(ipInt int64) string
- func ParseDuration(s string) (time.Duration, error)
- func ParseDurationConfig(config Map, field string) time.Duration
- func ParseSize(s string) int64
- func Sha1(str string) string
- func Sha1BaseFile(file string) string
- func Sha1File(file string) string
- func Split(s string) []string
- func UUID() string
- type FastID
- type HashRing
- type Runner
- type TOMLBuffer
- type TOMLBuilder
- type TOMLFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllinStrings ¶
func MergeString ¶
func ParseDuration ¶
ParseDuration parses a duration string. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
func ParseDurationConfig ¶
func Sha1BaseFile ¶
Types ¶
type FastID ¶
type FastID struct {
// contains filtered or unexported fields
}
func NewFastIDWithNode ¶
func (*FastID) GetSequence ¶
type TOMLBuffer ¶
type TOMLBuffer struct {
// contains filtered or unexported fields
}
func (*TOMLBuffer) Close ¶
func (buf *TOMLBuffer) Close() error
type TOMLBuilder ¶
type TOMLBuilder struct {
// contains filtered or unexported fields
}
func NewTOMLBuilder ¶
func NewTOMLBuilder() *TOMLBuilder
func (*TOMLBuilder) Append ¶
func (this *TOMLBuilder) Append(key string, vals ...string)
func (*TOMLBuilder) Build ¶
func (this *TOMLBuilder) Build() string
func (*TOMLBuilder) Files ¶
func (this *TOMLBuilder) Files() map[string][]TOMLFile
func (*TOMLBuilder) Forms ¶
func (this *TOMLBuilder) Forms() map[string][]string
func (*TOMLBuilder) Store ¶
func (this *TOMLBuilder) Store(key, name, mime string, buf io.ReadSeekCloser)
Click to show internal directories.
Click to hide internal directories.