Documentation ¶
Index ¶
- Constants
- func AbsFloat32(n float32) float32
- func AbsFloat64(n float64) float64
- func AbsInt32(n int32) int32
- func AbsInt64(n int64) int64
- func AtoInt(s string) (int, error)
- func AtoInt64(s string) (x int64, err error)
- func Caller(skip int) (file string, line int)
- func CallerInFunc(skip int) (name string, file string, line int)
- func CallerLineStack(stack string) (name string, file string, line int, success bool)
- func CallerShort(skip int) (file string, line int)
- func CreateFuncForCodePtr(outFuncPtr interface{}, codePtr uintptr) (err error)
- func DeepCopy(src interface{}) interface{}
- func Exception(catch func(stack string, e error))
- func ExecDir() string
- func FindFuncWithName(name string) (uintptr, error)
- func Float32(value interface{}) (float32, error)
- func Float64(value interface{}) (float64, error)
- func GZipCompress(data []byte) []byte
- func GZipUnCompress(data []byte) ([]byte, error)
- func GetFunc(outFuncPtr interface{}, name string) (err error)
- func Int(value interface{}) (int, error)
- func Int16(value interface{}) (int16, error)
- func Int32(value interface{}) (int32, error)
- func Int64(value interface{}) (int64, error)
- func Int8(value interface{}) (int8, error)
- func IsExist(path string) (bool, error)
- func IsExistFolder(path string) (bool, error)
- func IsUTF8(buf []byte) bool
- func ItoA(dst *[]byte, i int, w int)
- func ItoAW(dst *[]byte, i int, w int)
- func NewError(format string, a ...interface{}) error
- func OpenFile(folderPath string, fileName string, flag int, perm os.FileMode) (file *os.File, err error)
- func OpenFileB(filePath string, flag int, perm os.FileMode) (file *os.File, err error)
- func ProgramDir() string
- func Round(value float64, digit int) float64
- func ToFloat32(value interface{}) (float32, error)
- func ToFloat64(value interface{}) (float64, error)
- func ToInt(value interface{}) (int, error)
- func ToInt16(value interface{}) (int16, error)
- func ToInt32(value interface{}) (int32, error)
- func ToInt64(value interface{}) (int64, error)
- func ToInt8(value interface{}) (int8, error)
- func ToString(value interface{}) (string, error)
- func ToUint(value interface{}) (uint, error)
- func ToUint16(value interface{}) (uint16, error)
- func ToUint32(value interface{}) (uint32, error)
- func ToUint64(value interface{}) (uint64, error)
- func ToUint8(value interface{}) (uint8, error)
- func Try(f func(), Catch func(stack string, e error))
- func Type(value interface{}) reflect.Type
- func Uint(value interface{}) (uint, error)
- func Uint16(value interface{}) (uint16, error)
- func Uint32(value interface{}) (uint32, error)
- func Uint64(value interface{}) (uint64, error)
- func Uint8(value interface{}) (uint8, error)
- func ZLibCompress(data []byte) []byte
- func ZLibUnCompress(data []byte) ([]byte, error)
- type Buffer
- func (buf *Buffer) AppendByte(b byte)
- func (buf *Buffer) AppendBytes(bs ...byte)
- func (buf *Buffer) AppendFloat(f float64)
- func (buf *Buffer) AppendInt(n, w int)
- func (buf *Buffer) AppendString(s string)
- func (buf *Buffer) AppendStrings(ss ...string)
- func (buf *Buffer) Bytes() []byte
- func (buf *Buffer) Cap() int
- func (buf *Buffer) Clear()
- func (buf *Buffer) Free()
- func (buf *Buffer) ToString() string
- type HandleFile
- type IntSortedSet
- type LRUCache
- type SortedSet
- func (my *SortedSet) Add(v interface{})
- func (my *SortedSet) Back() (back interface{}, found bool)
- func (my *SortedSet) Clear()
- func (my *SortedSet) Del(index int) bool
- func (my *SortedSet) Difference(b *SortedSet) *SortedSet
- func (my *SortedSet) Find(v interface{}) (index int, found bool)
- func (my *SortedSet) Front() (front interface{}, found bool)
- func (my *SortedSet) Get(index int) (v interface{}, found bool)
- func (my *SortedSet) Intersection(b *SortedSet) *SortedSet
- func (my *SortedSet) Remove(v interface{}) bool
- func (my *SortedSet) Union(b *SortedSet) *SortedSet
Constants ¶
View Source
const HANDLE_FILE_PERM_ALL = 0777
View Source
const INT32_MAX = int32(^uint32(0) >> 1)
View Source
const INT32_MIN = ^UINT32_MAX
View Source
const UINT32_MAX uint32 = ^UINT32_MIN
View Source
const UINT32_MIN uint32 = 0
Variables ¶
This section is empty.
Functions ¶
func AbsFloat32 ¶
func AbsFloat64 ¶
func CallerLineStack ¶
func CreateFuncForCodePtr ¶
func FindFuncWithName ¶
func GZipCompress ¶
func GZipUnCompress ¶
func OpenFile ¶
func OpenFile(folderPath string, fileName string, flag int, perm os.FileMode) (file *os.File, err error)
打开文件 自动创建目录
func ZLibCompress ¶
func ZLibUnCompress ¶
Types ¶
type Buffer ¶
type Buffer []byte
func (*Buffer) AppendByte ¶
func (*Buffer) AppendBytes ¶
func (*Buffer) AppendFloat ¶
func (*Buffer) AppendString ¶
func (*Buffer) AppendStrings ¶
type HandleFile ¶
type HandleFile struct {
// contains filtered or unexported fields
}
func NewHandleFile ¶
func NewHandleFile(flag int, perm os.FileMode) *HandleFile
func OpenHandleFile ¶
func (*HandleFile) Close ¶
func (my *HandleFile) Close()
func (*HandleFile) PathName ¶
func (my *HandleFile) PathName() string
func (*HandleFile) SetPathName ¶
func (my *HandleFile) SetPathName(folderPath, fileName string) bool
func (*HandleFile) WriteString ¶
func (my *HandleFile) WriteString(s string) (n int, err error)
type IntSortedSet ¶
type IntSortedSet struct {
SortedSet
}
func NewIntSortedSet ¶
func NewIntSortedSet(reverse bool) *IntSortedSet
type LRUCache ¶
type LRUCache struct {
// contains filtered or unexported fields
}
func NewLRUCache ¶
type SortedSet ¶
type SortedSet struct {
// contains filtered or unexported fields
}
func NewSortedSet ¶
func (*SortedSet) Difference ¶
func (*SortedSet) Intersection ¶
Click to show internal directories.
Click to hide internal directories.