13.2 其他标准库

一、其他标准库

  1. bufio:打开文件、读写文件

  2. log:日志输出

  3. Encoding/json:json格式化

  4. regexp:正则表达式

  5. time:时间

  6. strings/math/rand:字符串函数、数学函数、随机数函数

二、查看标准库文档

  1. 自启动服务器:

    1. 命令行文件:godoc -http :8888

    2. 浏览器输入本地+端口访问页面

  2. 网址查看:https://studygolang.com/pkgdoc

Last updated

Was this helpful?