defer
Posted on October 11, 2023
关于类型推断,你想知道的都在这里
Posted on October 10, 2023
solidity 数据类型简介
Posted on October 9, 2023
1. solidity 简介
[Read More]
solidity 合约入门
Posted on October 9, 2023
Makefile 入门教程
Posted on October 9, 2023
Makefile 是一个非常强大的构建自动化工具,用于管理项目的编译、链接和其他构建任务。以下是一个详细的 Makefile 使用文档,包括基本概念、语法、示例和常见任务。
[Read More]
Go with Protobuf
Posted on October 8, 2023
Gossip in Hyperledger Fabric
Posted on October 8, 2023
1. Gossip协议基础
[Read More]
slices in Go 1.21
Posted on October 7, 2023
Go 1.21中新增的 slices包中提供了很多与切片相关的函数,适用于任意类型的切片。
[Read More]
设计模式之工厂模式
Posted on October 6, 2023
工厂模式是一种创建型设计模式,它提供了一个用于创建对象的接口,但允许子类决定实例化哪个类。工厂方法让一个类的实例化延迟到其子类。这种类型的设计模式属于创建型模式,它提供了一种创建对象的最佳方式。
[Read More]
cobra 简介
Posted on October 6, 2023
当你需要为你的 Go 项目创建一个强大的命令行工具时,你可能会遇到许多挑战,比如如何定义命令、标志和参数,如何生成详细的帮助文档,如何支持子命令等等。为了解决这些问题,github.com/spf13/cobra 就可以派上用场。
[Read More]