Skip to content

Commit 7121462

Browse files
committed
CGO enabled
1 parent 229767d commit 7121462

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
sleep 2
2929
3030
# Build the application
31-
go build -o main cmd/api/main.go
31+
CGO_ENABLED=1 go build -o main cmd/api/main.go
3232
3333
# Start the application in the background
3434
nohup ./main -config config/local.yaml > output.log 2>&1 &

cmd/api/main.go

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ func main() {
4040
})
4141

4242
router.HandleFunc("POST /api/users",users.New(storage))
43+
// router.HandleFunc("GET /api/users/{id}",users.GetUser(storage))
44+
// router.HandleFunc("GET /api/users",users.GetAll(storage))
4345

4446
//start server
4547

0 commit comments

Comments
 (0)