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

Unable to use a generator in Go #471

Closed
alex65536 opened this issue Aug 28, 2021 · 1 comment
Closed

Unable to use a generator in Go #471

alex65536 opened this issue Aug 28, 2021 · 1 comment

Comments

@alex65536
Copy link

Create a task and add a generator written in Go (for example, this one):

package main

import (
	"fmt"
)

func main() {
	fmt.Println(2)
	fmt.Println(1, 1)
}

Then, invoke the generator from the script and run an invocation. The validator will fail with the following error:

Validator 'wfval.exe' returns exit code 3 [FAIL Expected EOLN (stdin, line 1)]

I suspect that the error has something to do with line ending styles, but I don't know how to fix it. Is there a way to write a generator in Go?

@MikeMirzayanov
Copy link

It seems Go doesn't support switching between \n and \r\n automatically. Probably, you need to write some wrapper code.

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

2 participants