![](https://img-blog.csdnimg.cn/2019092715111047.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Go
...
PerpetualLearner
这个作者很懒,什么都没留下…
展开
-
理解glob-based paths
OverviewFrom Elastic, some options accept only glob-based paths.globGlob patterns specify sets of filenames with wildcard characters.The Unix bash shell command mv *.txt textfile means moving all files with names ending in .txt. Here *.txt is a glo..原创 2020-12-26 09:11:53 · 1115 阅读 · 2 评论 -
理解io/ioutil in go
package ioutilPackage ioutil implements some I/O utility functions.VariablesDiscard is an io.Writer on which all Write calls succeed without doing anything.var Discard io.Writer = devNull(0)FunctionsReadFilefunc ReadFile(filename string..原创 2020-10-18 21:34:38 · 251 阅读 · 0 评论 -
理解fmt||net/http in Go
fmtPackage fmt implements formatted I/O with functions analogous to C’s printf and scanf.The format ‘verbs’ are drived from C’s but are simpler.fmt.PrintlnPrintln formats using the default formats for its operands and writes to standard output.Spa..原创 2020-10-18 21:30:46 · 1630 阅读 · 6 评论 -
理解:=||nil||defer in Go
:= vs. =They are both assignments in Go.// =var name type = expressionvar x int = 1// := short variable declarationname := expression // the type of name is determined by the type of expression:= is a declaration, whereas = is an assignment...原创 2020-10-01 09:53:32 · 146 阅读 · 0 评论 -
GO语言须知1:历史、VSCode环境配置
go语言历史2007年开发,2009.11开源,2012年发布Go 1稳定版。下载地址: https://golang.org/dl/官网为VSCode配置go语言环境《VSCode+golang 安装配置》Reference菜鸟教程https://tour.go-zh.org/list...原创 2020-03-29 22:26:14 · 148 阅读 · 0 评论