The-Golang-Standard-Library-by-Example icon indicating copy to clipboard operation
The-Golang-Standard-Library-by-Example copied to clipboard

Golang标准库。对于程序员而言,标准库与语言本身同样重要,它好比一个百宝箱,能为各种常见的任务提供完美的解决方案。以示例驱动的方式讲解Golang的标准库。

Results 35 The-Golang-Standard-Library-by-Example issues
Sort by recently updated
recently updated
newest added

在unicode package中定义了各种字符的range,比如unicode.Han则代表了所有中文字符的range,还有个方法提供判断一个字符是不是落在某个区间。具体可以参考下面的一个示例。 ``` package main import ( "unicode" "fmt" ) func main() { fmt.Println(unicode.In('C', unicode.Han)) fmt.Println(unicode.In('具', unicode.Han)) } ``` output: false true

![image](https://github.com/flybird1971/pics/blob/master/bufio_code_1.png) ![image](https://github.com/flybird1971/pics/blob/master/bufio_error_1.png)

从Go 1.16开始,ioutil包已被标记为deprecated,建议开发者使用io包或os包进行替代。是不是意味着这个章节可以去除了? https://pkg.go.dev/io/ioutil