cstring

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

*------------------------------------------------------------**

  • @filename string/format.go
  • @author jinycoo
  • @version 1.0.0
  • @date 2019-07-25 16:55
  • @desc string - format **------------------------------------------------------------*

*------------------------------------------------------------**

  • @filename cstring/
  • @author jinycoo
  • @version 1.0.0
  • @date 2019-08-02 16:14
  • @desc cstring - **------------------------------------------------------------*

*------------------------------------------------------------**

  • @filename cstring/
  • @author jinycoo
  • @version 1.0.0
  • @date 2019-08-02 16:17
  • @desc cstring - **------------------------------------------------------------*

*------------------------------------------------------------**

  • @filename cstring/
  • @author jinycoo
  • @version 1.0.0
  • @date 2019-08-02 16:15
  • @desc cstring - **------------------------------------------------------------*

*------------------------------------------------------------**

  • @filename string/string.go
  • @author jinycoo
  • @version 1.0.0
  • @date 2019-07-31 11:41
  • @desc string - string **------------------------------------------------------------*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atoi

func Atoi(b []byte) (int, error)

func BytesToString

func BytesToString(b []byte) string

func ContainsPunct

func ContainsPunct(body, excludes string) (rs bool)

func FirstTitle

func FirstTitle(str string) string

func GenEmailStar

func GenEmailStar(email string) (xemail string)

func IsEmailValid

func IsEmailValid(e string) bool

func IsMobileValid

func IsMobileValid(mobile string) (b bool)

判断是否为手机号

func IsUrlValid

func IsUrlValid(url string) (b bool)

判断是否为手机号

func LastChar

func LastChar(str string) uint8

func ParseFloat

func ParseFloat(b []byte, bitSize int) (float64, error)

func ParseInt

func ParseInt(b []byte, base int, bitSize int) (int64, error)

func ParseUint

func ParseUint(b []byte, base int, bitSize int) (uint64, error)

func Sprint

func Sprint(template string, args ...interface{}) (message string)

func StringToBytes

func StringToBytes(s string) []byte

func ToLower

func ToLower(s string) string

func UBytesToString

func UBytesToString(b []byte) string

BytesToString converts byte slice to string.

func UStringToBytes

func UStringToBytes(s string) []byte

StringToBytes converts string to byte slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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