bytes

package
v0.33.9 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CharLower added in v0.13.3

func CharLower(char byte) byte

CharLower 转小写 A -> a

func CharUpper added in v0.13.3

func CharUpper(char byte) byte

CharUpper 转大写 a -> A

func FirstLower added in v0.13.3

func FirstLower(s string) string

FirstLower 首字母小写

func FirstUpper added in v0.13.3

func FirstUpper(s string) string

FirstUpper 首字母大写

func PutInt16

func PutInt16(n int16) []byte

PutInt16 int16 转 []byte

func PutInt32

func PutInt32(n int32) []byte

PutInt32 int32 转 []byte

func PutInt64

func PutInt64(n int64) []byte

PutInt64 int64 转 []byte

func PutInt8

func PutInt8(n int8) []byte

PutInt8 int8 转 []byte

func PutUint16

func PutUint16(n uint16) []byte

PutUint16 uint16 转 []byte

func PutUint32

func PutUint32(n uint32) []byte

PutUint32 uint32 转 []byte

func PutUint64

func PutUint64(n uint64) []byte

PutUint64 uint64 转 []byte

func PutUint8

func PutUint8(n uint8) []byte

PutUint8 uint8 转 []byte

func SliceInt16ToString added in v0.21.6

func SliceInt16ToString(from []int16) []string

SliceInt16ToString []int16 转 []string

func SliceInt32ToString added in v0.21.6

func SliceInt32ToString(from []int32) []string

SliceInt32ToString []int32 转 []string

func SliceInt64ToString added in v0.21.6

func SliceInt64ToString(from []int64) []string

SliceInt64ToString []int64 转 []string

func SliceInt8ToString added in v0.21.6

func SliceInt8ToString(from []int8) []string

SliceInt8ToString []int8 转 []string

func SliceIntToString added in v0.21.6

func SliceIntToString(from []int) []string

SliceIntToString []int 转 []string

func SliceStringToInt added in v0.14.3

func SliceStringToInt(from []string) ([]int, error)

SliceStringToInt []string 转 []int

func SliceStringToInt16 added in v0.14.3

func SliceStringToInt16(from []string) ([]int16, error)

SliceStringToInt16 []string 转 []int6

func SliceStringToInt32 added in v0.14.3

func SliceStringToInt32(from []string) ([]int32, error)

SliceStringToInt32 []string 转 []int32

func SliceStringToInt64 added in v0.14.3

func SliceStringToInt64(from []string) ([]int64, error)

SliceStringToInt64 []string 转 []int64

func SliceStringToInt8 added in v0.14.3

func SliceStringToInt8(from []string) ([]int8, error)

SliceStringToInt8 []string 转 []int8

func SliceStringToUint added in v0.14.3

func SliceStringToUint(from []string) ([]uint, error)

SliceStringToUint []string 转 []uint

func SliceStringToUint16 added in v0.14.3

func SliceStringToUint16(from []string) ([]uint16, error)

SliceStringToUint16 []string 转 []uint16

func SliceStringToUint32 added in v0.14.3

func SliceStringToUint32(from []string) ([]uint32, error)

SliceStringToUint32 []string 转 []uint32

func SliceStringToUint64 added in v0.14.3

func SliceStringToUint64(from []string) ([]uint64, error)

SliceStringToUint64 []string 转 []uint64

func SliceStringToUint8 added in v0.14.3

func SliceStringToUint8(from []string) ([]uint8, error)

SliceStringToUint8 []string 转 []uint8

func SliceUint16ToString added in v0.21.6

func SliceUint16ToString(from []uint16) []string

SliceUint16ToString []uint16 转 []string

func SliceUint32ToString added in v0.21.6

func SliceUint32ToString(from []uint32) []string

SliceUint32ToString []uint32 转 []string

func SliceUint64ToString added in v0.21.6

func SliceUint64ToString(from []uint64) []string

SliceUint64ToString []uint64 转 []string

func SliceUint8ToString added in v0.21.6

func SliceUint8ToString(from []uint8) []string

SliceUint8ToString []uint8 转 []string

func SliceUintToString added in v0.21.6

func SliceUintToString(from []uint) []string

SliceUintToString []uint 转 []string

func StringToBytes

func StringToBytes(s string) []byte

StringToByte 字符串转 []byte,转出的 []byte 可读不可写

来源: https://www.toutiao.com/a6918883127146349067/

func ToInt16

func ToInt16(p []byte) int16

ToInt16 转 int16

func ToInt32

func ToInt32(p []byte) int32

ToInt32 转 int32

func ToInt64

func ToInt64(p []byte) int64

ToInt64 转 int64

func ToInt8

func ToInt8(p []byte) int8

ToInt8 转为 int8

func ToUint16

func ToUint16(p []byte) uint16

ToUint16 转 uint16

func ToUint32

func ToUint32(p []byte) uint32

ToUint32 转 uint32

func ToUint64

func ToUint64(p []byte) uint64

ToUint64 转 uint64

func ToUint8

func ToUint8(p []byte) uint8

ToUint8 转为 uint8

Types

This section is empty.

Jump to

Keyboard shortcuts

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