When I run a program in go, in a W7 in Spanish, I get error messages in the SO language.
To provide an example:
2017/12/15 08:11:28 listen tcp :8080: socket: Se ha proporcionado un argumento no válido.
What can I do to get messages like this in English?
I emphasize that my need is not to have translated this specific message, but have the 'standard' English error in order to search for a solution.
The error message means An invalid argument was provided, it is partly in english, so probably just the last bit was added by the program. What is the program and how are you calling it? It's possible the message comes from the OS, the program or libraries used by the program, but most likely it comes from the program concerned.
Assuming you compiled the program, search for that string in your source code, including libraries, and change it to your desired string, then recompile.
I'm assuming you're running your server in a linux box, which might be set to spanish language. Supposing you'd like to keep like this, a good way to get rid of that is using something like this when you run the server:
bash$> LANG=en_IN ./your_fancy_server
Note that it impacts in all language set, like number, date and time formats. More about that and how to isolate each of them here
Another option is using something closer to golang style, like go-i18n, and parse all the error messages.
My personal note here (it's just my personal opinion instead of a universal truth), but if I were you I would set my server to English language and do the properly treatments inside the software, and no, English is not my first language.
Last but not least, if you're on Windows, sorry, it won't help you. Next time please give as much details as possible, the more the better.