GO语言标准库
首页
Packages
strconv
strings
Compare
Contains
ContainsAny
ContainsRune
Count
EqualFold
Fields
FieldsFunc
HasPrefix
HasSuffix
IndexAny
IndexByte
IndexFunc
IndexRune
Join
LastIndex
LastIndexAny
LastIndexByte
Map
Repeat
Replace
ReplaceAll
Split
SplitAfter
SplitAfterN
SplitN
Title
ToLower
ToLowerSpecial
ToTitle
ToTitleSpecial
ToUpper
ToUpperSpecial
ToValidUTF8
Trim
TrimFunc
TrimLeft
TrimLeftFunc
TrimPrefix
TrimRight
TrimRightFunc
TrimSpace
TrimSuffix
Packages
strings
ToValidUTF8
ToValidUTF8
ToValidUTF8 返回字符串 s 的一个副本,每次运行的无效UTF-8字节序列都被 replacement 替换,替换字符串可能为空。
ToValidUTF8
函数定义
func
ToValidUTF8
(
s
,
replacement
string
)
string