新建blockchain.go增加newBlock的方法,根据前一个区块的hash创建区块:本文链接:https://dreamerjonson.com/2018/12/16/gobuildblockchain-3-boltDB/版权声明:本博客所有文章除特别声明外,均采用CC BY 4.0 CN协议许可协议。转载请注明出处
为什么80%的码农都做不了架构师?>>> go的组合功能,也可以说是继承 type People struct {Name stringAge int
}type Student struct{PeopleNo int
} 定义一个student的函数: func (this *Student) Print() {fmt.Println(this.Name,this.Age,th