Skip to content

Commit

Permalink
Update go version to 1.24
Browse files Browse the repository at this point in the history
  • Loading branch information
EwenQuim committed Feb 19, 2025
1 parent b2e5117 commit ef177ea
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
branches: ["main"]

env:
GO_VERSION: "1.23"
GO_VERSION: "1.24"

jobs:
tests:
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
go: "1.23"
go: "1.24"
timeout: 1m
tests: false

Expand Down
14 changes: 12 additions & 2 deletions ctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,18 @@ const (
)

type (
ContextNoBody = Context[any, any]
ContextWithBody[B any] = Context[B, any]
// ContextNoBody is the context of the request with no body and no typed parameters.
// It contains the path parameters, and the HTTP request.
ContextNoBody = Context[any, any]

// ContextWithBody is the context of the request with typed body and no typed parameters.
// It contains the request body, the path parameters, the query parameters, and the HTTP request.
// Please do not use a pointer type as parameters.
ContextWithBody[B any] = Context[B, any]

// ContextWithParams is the context of the request with no body and typed parameters.
// It contains the path parameters, the query parameters, and the HTTP request.
// Please do not use a pointer type as parameters.
ContextWithParams[P any] = Context[any, P]
)

Expand Down

0 comments on commit ef177ea

Please sign in to comment.