-
Notifications
You must be signed in to change notification settings - Fork 2
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
undefined: locale.GetLanguage in darwin #30
Comments
When I try to compile the example for darwin this error appears
|
works for me on darwin arm64 apple@192 examples % cd getlocale
apple@192 getlocale % go run .
Locales: [en]
Locale: en
Language: en
Region: GOOS=darwin go run .
Locales: [en]
Locale: en
Language: en
Region:
apple@192 getlocale %
|
How strange, from my Linux it doesn't even compile |
https://github.com/jeandeaual/go-locale/blob/master/locale_unix.go You can easily work it out from there |
The problem is that this error appears when I try to cross compile In previous versions I can easily compile the binary from Linux to Darwin, but in this one it is not possible |
That’s because the Darwin version is cgo. You need to compile on each OS. Easy to do with GitHub actions |
No description provided.
The text was updated successfully, but these errors were encountered: