- 博客(7)
- 收藏
- 关注
原创 go structTag
go structTag 列子,如下type Message struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Hilarity Message_Humour
2018-01-30 18:12:52 296
原创 docker容器中安装vim
docker容器中vim安装步骤 vim: command not found//vim未安装 1. apt-get update //目的:同步 /etc/apt/sources.list 和 /etc/apt/sources.list.d 中列出的源的索引,这样才能获取到最新的软件包 2. apt-get install vim//安装vim
2018-01-27 18:39:07 1182
原创 go time format
time包格式化日期,必须得是这个日期与时间fmt.Println(time.Now().Format("2006年01月"))fmt.Println(time.Now().Format("2006-01-02 15:04:05")) 否则会出现: fmt.Println(time.Now().Format(“2018年01月”)) 输出:24018年01月
2018-01-24 14:46:03 1267
转载 go fmt
golang 的fmt 包实现了格式化I/O函数,类似于C的 printf 和 scanf。 # 定义示例类型和变量type Human struct { Name string}var people = Human{Name:"zhangsan"}普通占位符 占位符 说明举例输出
2018-01-16 17:04:18 4490
原创 fabric-sample chaincode运行
声明 本文默认fabric环境已经搭建好,如果没有搭建好请点击:fabric官网文档获取官方samplegit clone -b master https://github.com/hyperledger/fabric-samples.git运行步骤(需要三个终端)终端1: cd fabric-sample/chaincode-docker-devmode...
2018-01-16 10:26:42 2434
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人