【文件属性】:
文件名称:golang-例子
文件大小:24KB
文件格式:ZIP
更新时间:2021-02-23 07:09:19
Makefile
golang-例子
格式化代码
gofmt -w .
在本地运行
$GOPATH克隆$GOPATH
git clone git@github.com:nossbigg/golang-examples.git " $GOPATH " /src/nossbigg.com/golangexamples
运行测试
go test ./...
docker-compose命令
启动所有服务: docker-compose up -d
停止所有服务: docker-compose stop
销毁所有服务: docker-compose down
Postgres凭证
pgAdmin URL: http://localhost:5050
pgAdmin 4凭证
用户名: user@domain.com
密码: SuperSecret
Postgres连接凭证
主持人: postgres (因
【文件预览】:
golang-examples-main
----migrations()
--------20201223150424_create_items_table.up.sql(66B)
--------20201223150424_create_items_table.down.sql(17B)
----examples()
--------simple-channel-wg()
--------simple-channel()
--------http-json-response()
--------hello-world()
--------db-common()
--------simple-mutex()
--------letters-count()
--------db-select-items()
--------db-delete-item()
--------simple-atomic-add()
--------hello-world-server()
--------simple-threadpool()
--------db-insert-item()
----docker-compose.yml(530B)
----.gitignore(7B)
----Makefile(694B)
----go.sum(3KB)
----README.md(2KB)
----go.mod(543B)