博学谷Go语言与区块链在线就业
创建项目
在$GOPATH的src下创建项目blockChain
在blockChain下创建文件.env和main.go
在.env文件中写入PORT=8088
需要引入的包
import (
"crypto/sha256"
"encoding/hex"
"time"
"os"
"log"
"net/http"
"github.com/gorilla/mux"
"encoding/json"
"io"
"github.com/davecgh/go-spew/spew"
"sync"
"strconv"
"strings"
"fmt"
"github.com/joho/godotenv"
"net"
"bufio")