This commit is contained in:
yanweidong
2026-01-19 20:56:08 +08:00
parent ba23c2e9a6
commit a9a3cf1072
3 changed files with 38 additions and 0 deletions

33
.gitignore vendored Normal file
View File

@@ -0,0 +1,33 @@
# ---> Go
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
vendor/
gen/
.cache/
logs/
.idea/
.vscode/
.builds/
result/
results/
# Go workspace file
go.work
output/

BIN
builds/stock Normal file

Binary file not shown.

5
scripts/build.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
GOARCH=amd64 GOOS=linux go build -o ./builds/stock ./cmd/main/main.go
nohup ./stock > /data/app/logs/stock.log 2>&1 &