Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update : go.mod 1.18->1.20 #6

Open
NX-Official opened this issue Jun 7, 2023 · 0 comments
Open

update : go.mod 1.18->1.20 #6

NX-Official opened this issue Jun 7, 2023 · 0 comments

Comments

@NX-Official
Copy link

Currently go.mod contain go 1.18 , but when I use go 1.18 to execute

go run main.go server

it will panic

nx@NXsMacBook-Pro flamego-quick-template % go run main.go server
# github.com/charmbracelet/log
../../../go/pkg/mod/github.com/charmbracelet/[email protected]/log.go:30:19: undefined: atomic.Bool
../../../go/pkg/mod/github.com/charmbracelet/[email protected]/log.go:31:19: undefined: atomic.Int32

Then I found that if I switch go version to 1.20 it will fix

For this reason, I suggest update go 1.20 in go.mod

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

No branches or pull requests

1 participant