We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
package main import ( "fmt" "time" ) func main() { go func() { time.Sleep(1 * time.Second) fmt.Println("from goroutine") }() fmt.Print("prompt>") var x string fmt.Scanln(&x) fmt.Printf("Read %q\n", x) }
With normal go, "from goroutine" prints while waiting at the prompt
$ tinygo run main.go prompt>Read ""
(so stdin isn't there when running through tinygo run but that's not the main issue/bug:
tinygo run
tinygo build -o tinymain main.go ./tinymain prompt>
🦗
expected
$ go run main.go prompt>from goroutine abc Read "abc"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
With normal go, "from goroutine" prints while waiting at the prompt
(so stdin isn't there when running through
tinygo run
but that's not the main issue/bug:tinygo build -o tinymain main.go ./tinymain prompt>
🦗
expected
The text was updated successfully, but these errors were encountered: