Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 784 Bytes

README.md

File metadata and controls

47 lines (36 loc) · 784 Bytes

gobbs

golang的练手留言项目

预览

preview1 preview2 preview3 preview4 preview5

安装使用

设置代理和模块

go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn

运行

go run main.go

安装fresh热刷新

go get github.com/pilu/fresh

使用fresh

在项目目录下执行fresh

fresh
-bash: fresh: command not found 解决文案

安装后查看GOPATH位置

go env | grep 'GOPATH'

复制fresh命令到/usr/bin [/Users/feiyan/go]是我的GOPATH路径

sudo ln -s /Users/feiyan/go/bin/fresh /usr/bin