Change README for bc package
This commit is contained in:
parent
b415f08c46
commit
c72ff7fcee
23
README.md
23
README.md
|
@ -9,3 +9,26 @@ A blockchain implementation in Go, as described in these articles:
|
|||
5. [Addresses](https://jeiwan.cc/posts/building-blockchain-in-go-part-5/)
|
||||
6. [Transactions 2](https://jeiwan.cc/posts/building-blockchain-in-go-part-6/)
|
||||
7. [Network](https://jeiwan.cc/posts/building-blockchain-in-go-part-7/)
|
||||
|
||||
# Quick Start
|
||||
|
||||
## Download and install
|
||||
|
||||
go get github.com/richardweiyang/blockchain_go
|
||||
|
||||
## Create file `main.go`
|
||||
```go
|
||||
package main
|
||||
|
||||
import "github.com/richardweiyang/blockchain_go"
|
||||
|
||||
func main() {
|
||||
cli := bc.CLI{}
|
||||
cli.Run()
|
||||
}
|
||||
```
|
||||
#### Build and run
|
||||
|
||||
go build main.go
|
||||
./main
|
||||
|
||||
|
|
Loading…
Reference in New Issue