-
Notifications
You must be signed in to change notification settings - Fork 997
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Working off the dev branch.
I'm sure that this isn't a great pattern for microcontrollers, but I want to use io.Pipe() and there seems to be some issue importing it as noted below.
tinygo:ld.lld: error: undefined symbol: sync/atomic.LoadPointer
When I checked the lang-support page, it shows that package is supported and I was curious if this is something that is currently expected or not.
Code to reproduce.
package main
import (
"bytes"
"fmt"
"io"
)
func main() {
r, w := io.Pipe()
go func() {
fmt.Fprint(w, "some text to be read\n")
w.Close()
}()
buf := new(bytes.Buffer)
buf.ReadFrom(r)
fmt.Print(buf.String())
}Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request