Documentation ¶
Index ¶
- func AspectRatio(srcRect image.Point, toResize uint64) image.Point
- func FileSize(s uint64) string
- func FileSizeIEC(s uint64) string
- func FillUnicodeWidth(byteLength int, char rune) int
- func FormatInt(value int) string
- func FormatInt16(value int16) string
- func FormatInt32(value int32) string
- func FormatInt64(value int64) string
- func FormatInt8(value int8) string
- func FormatUint(value uint) string
- func FormatUint16(value uint16) string
- func FormatUint32(value uint32) string
- func FormatUint64(value uint64) string
- func FormatUint8(value uint8) string
- func GuessUnicodeWidth(char rune) (realSize int)
- func HexDump(by []byte) string
- func ParseInt(value string) (ret *int)
- func ParseInt16(value string) (ret *int16)
- func ParseInt16Must(value string) int16
- func ParseInt32(value string) (ret *int32)
- func ParseInt32Must(value string) int32
- func ParseInt64(value string) (ret *int64)
- func ParseInt64Must(value string) int64
- func ParseInt8(value string) (ret *int8)
- func ParseInt8Must(value string) int8
- func ParseIntMust(value string) int
- func ParseUint(value string) (ret *uint)
- func ParseUint16(value string) (ret *uint16)
- func ParseUint16Must(value string) uint16
- func ParseUint32(value string) (ret *uint32)
- func ParseUint32Must(value string) uint32
- func ParseUint64(value string) (ret *uint64)
- func ParseUint64Must(value string) uint64
- func ParseUint8(value string) (ret *uint8)
- func ParseUint8Must(value string) uint8
- func ParseUintMust(value string) uint
- type UUID
- func (u UUID) Compare(other UUID) int
- func (u UUID) Equal(other UUID) bool
- func (u UUID) Marshal() ([]byte, error)
- func (u UUID) MarshalJSON() ([]byte, error)
- func (u UUID) MarshalTo(buf []byte) (n int, err error)
- func (u UUID) Random()
- func (u *UUID) Scan(src interface{}) error
- func (u *UUID) Size() int
- func (u UUID) ToHexString() string
- func (u *UUID) UUIDFromHexString(buf []byte) error
- func (u *UUID) Unmarshal(buf []byte) error
- func (u *UUID) UnmarshalJSON(from []byte) error
- func (u UUID) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileSizeIEC ¶
FileSize calculates the file size and generate user-friendly string.
func FillUnicodeWidth ¶
func FormatInt16 ¶
func FormatInt32 ¶
func FormatInt64 ¶
func FormatInt8 ¶
func FormatUint ¶
func FormatUint16 ¶
func FormatUint32 ¶
func FormatUint64 ¶
func FormatUint8 ¶
func GuessUnicodeWidth ¶
func ParseInt16 ¶
func ParseInt16Must ¶
func ParseInt32 ¶
func ParseInt32Must ¶
func ParseInt64 ¶
func ParseInt64Must ¶
func ParseInt8Must ¶
func ParseIntMust ¶
func ParseUint16 ¶
func ParseUint16Must ¶
func ParseUint32 ¶
func ParseUint32Must ¶
func ParseUint64 ¶
func ParseUint64Must ¶
func ParseUint8 ¶
func ParseUint8Must ¶
func ParseUintMust ¶
Types ¶
type UUID ¶
type UUID [16]byte
func (UUID) MarshalJSON ¶
func (UUID) ToHexString ¶
func (*UUID) UUIDFromHexString ¶
func (*UUID) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.