convert

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Byte2Str

func Byte2Str(b []byte) string

func Int64ToStr

func Int64ToStr(num int64) string

func IntToStr

func IntToStr(num int) string

func IoReaderToByte

func IoReaderToByte(reader io.Reader) *bytes.Buffer

func IpIntToString

func IpIntToString(ipInt int64) string

func ParseObject

func ParseObject(input interface{}, tagType int) map[string]string

parse struct of object tagType 1 => "db" 2=> "json"

func Str2Byte

func Str2Byte(s string) []byte

func Str2ByteByReflect

func Str2ByteByReflect(s string) []byte

s2b converts string to a byte slice without memory allocation.

Note it may break if string and/or slice header will change in the future go versions.

func StrReplace

func StrReplace(str string, old string, news ...string) string

func StringIpToInt

func StringIpToInt(ipstring string) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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