This simple version is working - it seems to be a more specific issue.
On Monday, 21 September 2020 at 09:37:57 UTC+2 [email protected] wrote:
> On Monday, 21 September 2020 07:51:19 UTC+1, Walter Weinmann wrote:
>>
>> Same problem with os.Exit(1).
>>
>>
> Are you saying that if you run this program:
>
> package main
> import "os"
> func main() {
> os.Exit(1)
> }
>
> you see the %ERRORLEVEL% is 0?
>
> Under Linux, calling os.Exit(1) also prints the message "exit status 1".
> Does this happen with Windows too?
>
> What version of go are you using? And which shell are you using to run
> the script which runs the executable?
>
>>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/f0196334-cd91-4a88-ac19-e78f88c25143n%40googlegroups.com.