
Go
...
ikeepo
https://ikeepo.github.io/
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
理解glob-based paths
Overview From Elastic, some options accept only glob-based paths. glob Glob 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 · 1172 阅读 · 2 评论 -
理解io/ioutil in go
package ioutil Package ioutil implements some I/O utility functions. Variables Discard is an io.Writer on which all Write calls succeed without doing anything. var Discard io.Writer = devNull(0) Functions ReadFile func ReadFile(filename string..原创 2020-10-18 21:34:38 · 308 阅读 · 0 评论 -
理解fmt||net/http in Go
fmt Package 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.Println Println formats using the default formats for its operands and writes to standard output. Spa..原创 2020-10-18 21:30:46 · 1672 阅读 · 6 评论 -
理解:=||nil||defer in Go
:= vs. = They are both assignments in Go. // = var name type = expression var x int = 1 // := short variable declaration name := 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 · 184 阅读 · 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 · 179 阅读 · 0 评论