摘要: GOPATH 从 Go 1.8 版本开始,Go 开发包在安装完成后,将 GOPATH 赋予了一个默认的目录,参见下表 image.png 在Jetbrains 公司的 GoLand 集成开发环境(IDE)中GOPATH分两种: 1、Global GOPATH 2、Project GOPATH Glo 阅读全文
posted @ 2020-08-18 22:02 CyberPelican 阅读(357) 评论(0) 推荐(0) 编辑
摘要: Golang http 通用方法 func HandleError(err error, reason string) { if err != nil { println(err, reason) } } func getContentByUrl(url string) string{ resp, 阅读全文
posted @ 2020-08-18 18:27 CyberPelican 阅读(118) 评论(0) 推荐(0) 编辑
摘要: /^正则表达式$/ 参考: https://www.runoob.com/regexp/regexp-syntax.html https://studygolang.com/pkgdoc golang regex https://regexr.com/ 正则在线检测 非打印字符 字符 描述 \n 换 阅读全文
posted @ 2020-08-18 18:18 CyberPelican 阅读(4809) 评论(0) 推荐(0) 编辑