摘要: package main import ( "fmt" ) type Txt struct { name string } func main() { //list1------------------------- x := 1 y := 2 fmt.Println("x1:", x) fmt.Println("y1:", y)... 阅读全文
posted @ 2017-02-14 13:58 阿波罗一号 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 本篇内容是关于 go strings 包内容的详解,逐步更新中 阅读全文
posted @ 2017-02-13 16:02 阿波罗一号 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 引用:https://github.com/jiashaokun/go-util 只在使用中实现了部分函数 阅读全文
posted @ 2017-02-10 16:06 阿波罗一号 阅读(2684) 评论(0) 推荐(0) 编辑
摘要: go 匿名函数与其他语言基本上是无区别的,下面举个例子说明 阅读全文
posted @ 2017-02-03 16:18 阿波罗一号 阅读(1771) 评论(0) 推荐(0) 编辑
摘要: go 设计一个 接入Api 的配置文件,使用 interface,type struct 以及 array 阅读全文
posted @ 2017-01-22 16:36 阿波罗一号 阅读(700) 评论(0) 推荐(0) 编辑
摘要: 上述完成一个简单的 GO channel 的使用 go routine 阅读全文
posted @ 2017-01-20 15:02 阿波罗一号 阅读(548) 评论(0) 推荐(0) 编辑
摘要: Go数组操作 随笔 阅读全文
posted @ 2017-01-16 11:42 阿波罗一号 阅读(1493) 评论(0) 推荐(0) 编辑
摘要: mac 环境下,安装docker 下载链接:https://download.docker.com/mac/stable/Docker.dmg 下载完毕后,直接双击安装,下一步直到最后 创建dockerfile文件,该文件为了构建容器使用 运行dockerfile docker build -t n 阅读全文
posted @ 2017-01-10 16:59 阿波罗一号 阅读(655) 评论(0) 推荐(0) 编辑
摘要: import ( "net/http" "net/url" ) //发送一个简单的get请求 func GetRequest { //联系使用 make(map[string]string) queryData := make(map[string]string) //创建空间, queryData["params"] = c.QueryParam... 阅读全文
posted @ 2017-01-09 16:22 阿波罗一号 阅读(3033) 评论(0) 推荐(0) 编辑
摘要: golang官网:https://golang.org 中文文档:docscn.studygolang.com/doc/ 一:环境变量设置 导入环境变量GOROOT:export GOROOT=/usr/local/go 导入PATH:export PATH=/usr/local/go/bin:$P 阅读全文
posted @ 2016-12-11 15:27 阿波罗一号 阅读(237) 评论(0) 推荐(0) 编辑