Documentation ¶
Index ¶
- func BoolToInt8(b bool) int8
- func Contains(obj interface{}, target interface{}) (bool, error)
- func Int32ToString(i int32) string
- func Int64ToString(i int64) string
- func Int8ToBool(b int8) bool
- func IsAlNum(c byte) bool
- func IsAlNumString(s string) bool
- func IsLetter(b byte) bool
- func IsLower(b byte) bool
- func IsNumber(c byte) bool
- func IsUpper(b byte) bool
- func JoinInt32List(s []int32, sep string) string
- func JoinInt64List(s []int64, sep string) string
- func JoinUint32List(s []uint32, sep string) string
- func JoinUint64List(s []uint64, sep string) string
- func NowFormatYMDHMS() string
- func StringToInt32(s string) (int32, error)
- func StringToInt64(s string) (int64, error)
- func StringToUint32(s string) (uint32, error)
- func StringToUint64(s string) (uint64, error)
- type Buffer
- func (b *Buffer) Bytes() []byte
- func (b *Buffer) Cap() int
- func (b *Buffer) Grows(n int) (i int)
- func (b *Buffer) Len() int
- func (b *Buffer) Read(p []byte) (int, error)
- func (b *Buffer) ReadAt(p []byte, off int64) (int, error)
- func (b *Buffer) ReadByte() (byte, error)
- func (b *Buffer) ReadBytes(delim byte) ([]byte, error)
- func (b *Buffer) ReadRune() (rune, int, error)
- func (b *Buffer) ReadUint16(order binary.ByteOrder) (uint16, error)
- func (b *Buffer) ReadUint32(order binary.ByteOrder) (uint32, error)
- func (b *Buffer) ReadUint64(order binary.ByteOrder) (uint64, error)
- func (b *Buffer) Reset()
- func (b *Buffer) ResetUndelay(data []byte)
- func (b *Buffer) Skip(i int) int
- func (b *Buffer) String() string
- func (b *Buffer) Truncate(size int)
- func (b *Buffer) Write(p []byte) (int, error)
- func (b *Buffer) WriteByte(c byte) error
- func (b *Buffer) WriteRune(r rune) (int, error)
- func (b *Buffer) WriteUint16(u uint16, order binary.ByteOrder) error
- func (b *Buffer) WriteUint32(u uint32, order binary.ByteOrder) error
- func (b *Buffer) WriteUint64(u uint64, order binary.ByteOrder) error
- type Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolToInt8 ¶
func Int32ToString ¶
func Int64ToString ¶
func Int8ToBool ¶
func IsAlNumString ¶
https://github.com/nebulaim/telegramd/issues/99
there are some issue in username validation 1 - issue : username can be only numeric [must check first character for alphabet] 2 - issue :underscore not allowed [must edit IsAlNumString and add underscore support to it.
by the way underscore can't repeat without any character between them. for example s_a_b_a. ]
func JoinInt32List ¶
func JoinInt64List ¶
func JoinUint32List ¶
func JoinUint64List ¶
func NowFormatYMDHMS ¶
func NowFormatYMDHMS() string
///////////////////////////////////////////////////////////
func StringToInt32 ¶
func StringToInt64 ¶
func StringToUint32 ¶
func StringToUint64 ¶
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func MakeBuffer ¶
func (*Buffer) ResetUndelay ¶
Click to show internal directories.
Click to hide internal directories.