Hi all,
In this code, the SetMapIndex line panics in Go <1.18, but it no longer
panics in Go 1.18:
type CustomString string
m := reflect.ValueOf(map[CustomString]int{})
m.SetMapIndex(reflect.ValueOf("key"), reflect.ValueOf(0))
The panic ("value of type string is not assignable to typ
Thanks all. I opened this issue:
https://github.com/golang/go/issues/23556
(The reason I'm using SetNonblock is that before Go 1.9, it wasn't safe to
call file.Close() if another goroutine was reading/writing to the pipe. But
now that it's safe with Go 1.9, I can re-organize my code and remov
Hey all, this program exits (as expected) when run with macOS 10.12.6 + Go
1.8.6, but it deadlocks when run with Go 1.9.3:
https://play.golang.org/p/Dw_ND9gkgPm
The same behavior is observed when using unix.SetNonblock instead of
syscall.SetNonblock.
It appears that the SetNonblock() functio
Hey all,
With Go 1.9's use of the poller for file I/O, I'd like to use f.Close() to
make another goroutine exit if it's blocked on a read or write. Is that
safe in Go 1.9? (Currently I'm using a kqueue to safely handle such
teardown.)
Thanks!
David
--
You received this message because you are s