【Go】 格式处理

格式化字符串 

在golang里面获取时间戳并不难。只要加载time包。
time.Now().Unix()

fmt.Sprintf("%d",int64),
自此,go语言的int转换成string有3种方法

1、int32位,strconv.Itoa
2、大于32位,strconv.FormatInt()
3、万恶的fmt.Sprintf...好吧,这个我在php里是经常用来做格式化


引入strings包 strings.contains()

index()

indexany()

indexFunc()

正则表达式

DFA
NFA
Backtracking

原文地址:https://www.cnblogs.com/viewcozy/p/4623242.html