Version: v0.0.0-...-6e21e7b Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2018 License: Apache-2.0 Imports: 7 Imported by: 0




This section is empty.


This section is empty.


func BoolToInt8

func BoolToInt8(b bool) int8

func Contains

func Contains(obj interface{}, target interface{}) (bool, error)

func Int32ToString

func Int32ToString(i int32) string

func Int64ToString

func Int64ToString(i int64) string

func IsAlNum

func IsAlNum(c byte) bool

IsAlNum check character is a alnum or not

func IsAlNumString

func IsAlNumString(s string) bool

IsAlNumString returns true if an alpha numeric string consists of characters a-zA-Z0-9

func IsLetter

func IsLetter(b byte) bool

IsLetter check character is a letter or not

func IsLower

func IsLower(b byte) bool

IsLower check letter is lower case or not

func IsNumber

func IsNumber(c byte) bool

IsNumber check character is a number or not

func IsUpper

func IsUpper(b byte) bool

IsUpper check letter is upper case or not

func JoinInt32List

func JoinInt32List(s []int32, sep string) string

func JoinInt64List

func JoinInt64List(s []int64, sep string) string

func JoinUint32List

func JoinUint32List(s []uint32, sep string) string

func JoinUint64List

func JoinUint64List(s []uint64, sep string) string

func NowFormatYMDHMS

func NowFormatYMDHMS() string


func StringToInt32

func StringToInt32(s string) (int32, error)

func StringToInt64

func StringToInt64(s string) (int64, error)

func StringToUint32

func StringToUint32(s string) (uint32, error)

func StringToUint64

func StringToUint64(s string) (uint64, error)


type Buffer

type Buffer struct {
	// contains filtered or unexported fields

func MakeBuffer

func MakeBuffer(size, capacity int) *Buffer

func NewBuffer

func NewBuffer(data []byte) *Buffer

func (*Buffer) Bytes

func (b *Buffer) Bytes() []byte

func (*Buffer) Cap

func (b *Buffer) Cap() int

func (*Buffer) Grows

func (b *Buffer) Grows(n int) (i int)

func (*Buffer) Len

func (b *Buffer) Len() int

func (*Buffer) Read

func (b *Buffer) Read(p []byte) (int, error)

func (*Buffer) ReadAt

func (b *Buffer) ReadAt(p []byte, off int64) (int, error)

func (*Buffer) ReadByte

func (b *Buffer) ReadByte() (byte, error)

func (*Buffer) ReadBytes

func (b *Buffer) ReadBytes(delim byte) ([]byte, error)

func (*Buffer) ReadRune

func (b *Buffer) ReadRune() (rune, int, error)

func (*Buffer) ReadUint16

func (b *Buffer) ReadUint16(order binary.ByteOrder) (uint16, error)

func (*Buffer) ReadUint32

func (b *Buffer) ReadUint32(order binary.ByteOrder) (uint32, error)

func (*Buffer) ReadUint64

func (b *Buffer) ReadUint64(order binary.ByteOrder) (uint64, error)

func (*Buffer) Reset

func (b *Buffer) Reset()

func (*Buffer) ResetUndelay

func (b *Buffer) ResetUndelay(data []byte)

func (*Buffer) Skip

func (b *Buffer) Skip(i int) int

func (*Buffer) String

func (b *Buffer) String() string

func (*Buffer) Truncate

func (b *Buffer) Truncate(size int)

func (*Buffer) Write

func (b *Buffer) Write(p []byte) (int, error)

func (*Buffer) WriteByte

func (b *Buffer) WriteByte(c byte) error

func (*Buffer) WriteRune

func (b *Buffer) WriteRune(r rune) (int, error)

func (*Buffer) WriteUint16

func (b *Buffer) WriteUint16(u uint16, order binary.ByteOrder) error

func (*Buffer) WriteUint32

func (b *Buffer) WriteUint32(u uint32, order binary.ByteOrder) error

func (*Buffer) WriteUint64

func (b *Buffer) WriteUint64(u uint64, order binary.ByteOrder) error

type Duration

type Duration time.Duration

Duration be used toml unmarshal string time, like 1s, 500ms.

func (*Duration) UnmarshalText

func (d *Duration) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL