Skip to content

bump go to 1.25 and update go deps#476

Open
Nexucis wants to merge 4 commits into
gavv:masterfrom
Nexucis:nexucis/update-go
Open

bump go to 1.25 and update go deps#476
Nexucis wants to merge 4 commits into
gavv:masterfrom
Nexucis:nexucis/update-go

Conversation

@Nexucis

@Nexucis Nexucis commented Jun 5, 2026

Copy link
Copy Markdown

Hello,

I would like to update the dependencies of this project. It's been a while it has not been done :)

Nexucis added 2 commits June 5, 2026 11:29
Signed-off-by: Augustin Husson <augustin.husson@amadeus.com>
Signed-off-by: Augustin Husson <augustin.husson@amadeus.com>
@Nexucis Nexucis marked this pull request as draft June 5, 2026 09:40
@Nexucis Nexucis force-pushed the nexucis/update-go branch 2 times, most recently from 2e0106b to dd453b8 Compare June 5, 2026 09:44
Signed-off-by: Augustin Husson <augustin.husson@amadeus.com>
@Nexucis Nexucis force-pushed the nexucis/update-go branch 4 times, most recently from f4fa424 to 23ac756 Compare June 5, 2026 11:18
Comment thread e2e/chunked_test.go
return func(ctx *fasthttp.RequestCtx) {
headers := map[string][]string{}

ctx.Request.Header.VisitAll(func(k, v []byte) {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visitall is a deprecated function, that's why I have replaced it

Comment thread array.go
}

if !(len(a.value) == 0) {
if len(a.value) > 0 {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's easier and faster to read like that when you do not have to calculate in memory the boolean expression

Comment thread boolean.go Outdated
}

if !(b.value == true) {
if b.value {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

value is already a boolean, so comparing to another boolean does not make really sense

Comment thread formatter.go
switch f.DigitSeparator {
case DigitSeparatorUnderscore:
separator = "_"
break

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

break is not necessary in Golang in a switch.

Comment thread request.go
httpClient = &clientCopy
r.config.Client = &clientCopy
}
return

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here there was a possibility for httpClient to be nil. So I have moved the return statement to avoid this situation

@Nexucis Nexucis force-pushed the nexucis/update-go branch 5 times, most recently from 7d1b4f8 to e85b37e Compare June 5, 2026 11:42
Signed-off-by: Augustin Husson <augustin.husson@amadeus.com>
@Nexucis Nexucis force-pushed the nexucis/update-go branch from e85b37e to f8f128b Compare June 5, 2026 11:49
@Nexucis

Nexucis commented Jun 5, 2026

Copy link
Copy Markdown
Author

I don't get why the build is failing. If you are interested by this PR, do you mind to guide me @gavv ?

@Nexucis Nexucis marked this pull request as ready for review June 5, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant