A quick look at the files and directories of this Golid project.
.
├── Blockchain
│ └── python
│ ├── Pipfile
│ ├── Pipfile.lock
│ └── blockchain.py
├── Contracts
│ ├── access
│ ├── crypto
│ ├── math
│ ├── payment
│ └── utils
├── Go
│ ├── gee
│ └── go_basic_synatx
│ └── src
│ ├── array
│ ├── condition
│ ├── constant
│ ├── fib
│ ├── func
│ ├── hello
│ ├── loop
│ ├── map
│ ├── operate
│ ├── slice
│ ├── test
│ └── type
├── LICENSE
├── README.md
├── Solidity
│ ├── contract
│ ├── example
│ └── synatx
└── Truffle
├── proof
│ ├── build
│ ├── contracts
│ ├── migrations
│ ├── test
│ └── truffle-config.js
└── solidity
Blockchain
:利用不同的语言实现一个简单的区块链Contracts
:Using battle-tested libraries of smart contracts for Ethereum and other blockchainsGo
:用 Go 从零实现常用框架Solidity
:基本语法和使用案例Truffle
:结合 Truffle 框架来部署合约
Contracts 目录
├── Contracts
│ ├── access
│ │ └── Ownable.sol
│ ├── crypto
│ │ └── MerkleProof.sol
│ ├── math
│ │ ├── Math.sol
│ │ └── SafeMath.sol
│ ├── payment
│ │ ├── ConditionalEscrow.sol
│ │ ├── Escrow.sol
│ │ └── RefundEscrow.sol
│ └── utils
│ ├── Address.sol
│ ├── Context.sol
│ ├── Counters.sol
│ ├── Create.sol
│ ├── Map.sol
│ ├── Pausable.sol
│ ├── ReentrancyGuard.sol
│ ├── SafeCast.sol
│ └── Strings.sol
Go 框架目录
├── Go
│ ├── gee
│ │ └── http
│ │ ├── base1
│ │ │ └── main.go
│ │ ├── base2
│ │ │ └── main.go
│ │ └── base3
│ │ ├── gee
│ │ │ ├── gee.go
│ │ │ └── go.mod
│ │ ├── go.mod
│ │ └── main.go