command
module
Version:
v0.0.0-...-c42f474
Opens a new window with list of versions in this module.
Published: Aug 7, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
GoBlockchain
A simple blockchain as an exercise.
Running locally
$ go run main.go
API Calls
GET
To list all existent blocks:
$ curl http://localhost:8080
POST
To create a new block:
$ curl -H "Content-Type: application/json" -d '{"BPM":10}' http://localhost:8080
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.