go-easy-utils/strUtil
2024-04-03 10:46:39 +08:00
..
README.md Feature/v2 doc (#32) 2023-05-05 15:48:44 +08:00
str_to_byte_example_test.go Feature/example test (#24) 2023-04-12 15:09:44 +08:00
str_to_byte_test.go Feature/example test (#24) 2023-04-12 15:09:44 +08:00
str_to_byte.go Feature/example test (#24) 2023-04-12 15:09:44 +08:00
str_to_int_x_example_test.go Feature/example test (#24) 2023-04-12 15:09:44 +08:00
str_to_int_x_test.go Feature/example test (#24) 2023-04-12 15:09:44 +08:00
str_to_int_x.go Feature/example test (#24) 2023-04-12 15:09:44 +08:00
str_to_uint_x_example_test.go Feature/example test (#24) 2023-04-12 15:09:44 +08:00
str_to_uint_x_test.go Feature/example test (#24) 2023-04-12 15:09:44 +08:00
str_to_uint_x.go Feature/example test (#24) 2023-04-12 15:09:44 +08:00

strUtil

Install

go get -u github.com/jefferyjob/go-easy-utils/strUtil

Import

import (
	"github.com/jefferyjob/go-easy-utils/v2/strUtil"
)

Functions

// StrToInt string转int
func StrToInt(v string) int 

// StrToInt8 string转int8
func StrToInt8(v string) int8 

// StrToInt16 string转int16
func StrToInt16(v string) int16 

// StrToInt32 string转int32
func StrToInt32(v string) int32 

// StrToInt64 string转int64
func StrToInt64(v string) int64

// StrToUint string转uint
func StrToUint(v string) uint

// StrToUint8 string转uint8
func StrToUint8(v string) uint8

// StrToUint16 string转uint16
func StrToUint16(v string) uint16

// StrToUint32 string转uint32
func StrToUint32(v string) uint32

// StrToUint64 string转uint64
func StrToUint64(v string) uint64

// StrToBytes 字符串转字节数组
func StrToBytes(v string) []byte