商君

导航

2018年10月31日 #

Go Example--json

摘要: ```go package main import ( "encoding/json" "fmt" "os" ) type Response1 struct { Page int Fruits []string } type Response2 struct { Page int Fruits [] 阅读全文

posted @ 2018-10-31 20:31 漫步者01 阅读(111) 评论(0) 推荐(0) 编辑

Go-struct

摘要: 1、struct说明 2、使用struct实现二叉树 go package main import "fmt" //二叉树定义 type tree struct { value int left, right tree } //堆排 func Sort(values []int) { var roo 阅读全文

posted @ 2018-10-31 15:10 漫步者01 阅读(96) 评论(0) 推荐(0) 编辑