gostring

package module
v0.0.0-...-05c9766 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 6 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HmacSha256Hex

func HmacSha256Hex(key, strToSign string) string

func LineBreak

func LineBreak(str string) string

LineBreak 去除换行符

func NumericalToString

func NumericalToString(value interface{}) (string, bool)

func Replace

func Replace(str, old, new string) string

Replace 字符串替换

func Space

func Space(str string) string

Space 去除空格

func SpaceAndLineBreak

func SpaceAndLineBreak(str string) string

SpaceAndLineBreak 去除空格和去除换行符

func Split

func Split(s string, sep string) []string

Split 字符串分隔

func ToFloat64

func ToFloat64(s string) float64

ToFloat64 string到float64

func ToInt

func ToInt(s string) int

ToInt string到int

func ToInt64

func ToInt64(s string) int64

ToInt64 string到int64

func TrimLastChar

func TrimLastChar(s string) string

TrimLastChar 删除字符串中的最后一个

Types

This section is empty.

Jump to

Keyboard shortcuts

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