help you create go app with app-stub template.
npx create-go-app demo
yarn create go-app demo
pnpm create go-app demo
pnpm dlx create-go-app demo
- Build from source
go build -ldflags "-s -w" -buildmode=exe -tags release -o bin/demo
- Create config
bin/demo config
Note: Please modify config.json as you need.
- Start your app
bin/demo serve
Note: Default config is use network: unix
, you can change network
to tcp
and addr
to 127.0.0.1:5000
for test.