Documentation ¶
Index ¶
- func CheckError(err error)
- func CompressBytes(data []byte) ([]byte, error)
- func DecompressBytes(data []byte) ([]byte, error)
- func FileExists(name string) bool
- func FileSize(name string) int64
- func FloatToString(num interface{}, fixedLen int) string
- func GenKey8() (string, error)
- func GetLocalIp() string
- func If(condition bool, trueVal, falseVal interface{}) interface{}
- func IsEOFOrNetReadError(err error) bool
- func NewErrCxt(s string, context interface{}) error
- func NewError(s string) error
- func NumToString(num interface{}) string
- func PrintPanicStack()
- func PrintPanicStackError()
- func ReadFileLines(filename string, callback func(line string) bool) error
- func Run()
- func StackToString(count int) string
- func UnixMillisecond() int64
- func WriteFull(writer io.Writer, buf []byte) error
- type Error
- type IdWorker
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CheckError(err error)
func CompressBytes ¶
func DecompressBytes ¶
func FileExists ¶
func PrintPanicStack ¶
func PrintPanicStack()
func PrintPanicStackError ¶
func PrintPanicStackError()
func StackToString ¶
Types ¶
type IdWorker ¶
type IdWorker struct {
// contains filtered or unexported fields
}
func (*IdWorker) InitIdWorker ¶
Click to show internal directories.
Click to hide internal directories.