Documentation ¶
Index ¶
- Constants
- func ArrayToString(array []interface{}) string
- func AutoClearCode(filepath string, codeData string) error
- func AutoInjectionCode(filepath string, funcName string, codeData string) error
- func BcryptCheck(password, hash string) bool
- func BcryptHash(password string) string
- func BreakPointContinue(content []byte, fileName string, contentNumber int, contentTotal int, ...) (string, error)
- func CheckMd5(content []byte, chunkMd5 string) (CanUpload bool)
- func DateFormat(t time.Time) string
- func FirstLower(s string) string
- func FirstUpper(s string) string
- func InterfaceToStruct(data interface{}, v any) error
- func JSONLoadFromFile(filePath string, data interface{}) error
- func JsonField(msg string, v any) zap.Field
- func MD5V(str []byte, b ...byte) string
- func MaheHump(s string) string
- func MakeAddr(host string, port int) string
- func MakeFile(fileName string, FileMd5 string) (string, error)
- func MapToStruct(data map[string]interface{}, v any) error
- func MilliStamp() int64
- func MillisToTime(millis int64) time.Time
- func NowString() string
- func ParseDuration(d string) (time.Duration, error)
- func Pointer[T any](in T) (out *T)
- func Reload() error
- func RemoveChunk(FileMd5 string) error
- func Sort(length int, less func(i, j int) bool, swap func(i, j int))
- func Stamp() int64
- func StructToMap(obj interface{}) map[string]interface{}
- func TimeField(msg string, t time.Time) zap.Field
- func ToJSON(v any) string
- func Unzip(zipFile string, destDir string) ([]string, error)
- func UpdateStampOffset(stamp int64)
- func ZipFiles(filename string, files []string, oldForm, newForm string) error
- type Cache
- type CountRef
- type Cpu
- type Disk
- type Element
- type Os
- type Ram
- type Server
- type Sorter
- type Stack
- func (stack *Stack) Cap() int
- func (stack *Stack) Clear()
- func (stack *Stack) Empty() bool
- func (stack *Stack) Len() int
- func (stack *Stack) Peek() (ele Element, err error)
- func (stack *Stack) Pop() (ele Element, err error)
- func (stack *Stack) Push(element Element) (err error)
- func (stack *Stack) Top() Element
- type Time
- type Timer
Constants ¶
View Source
const ( B = 1 KB = 1024 * B MB = 1024 * KB GB = 1024 * MB )
Variables ¶
This section is empty.
Functions ¶
func ArrayToString ¶
func ArrayToString(array []interface{}) string
func AutoClearCode ¶
func AutoInjectionCode ¶
func BreakPointContinue ¶
func DateFormat ¶
func FirstLower ¶
func FirstUpper ¶
func InterfaceToStruct ¶
func JSONLoadFromFile ¶
func MapToStruct ¶
func MilliStamp ¶
func MilliStamp() int64
func MillisToTime ¶
func RemoveChunk ¶
func StructToMap ¶
func StructToMap(obj interface{}) map[string]interface{}
func UpdateStampOffset ¶
func UpdateStampOffset(stamp int64)
Types ¶
type CountRef ¶
type CountRef struct {
// contains filtered or unexported fields
}
func MakeCountRef ¶
func MakeCountRef() *CountRef
type Disk ¶
type Os ¶
type Ram ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.