This fixes problems due to storing binary symbols as interfaces{}
instead of concrete type, which confuses lookup functions to retrieve
methods etc. in reflect.
16 lines
191 B
Go
16 lines
191 B
Go
package main
|
|
|
|
import (
|
|
"crypto/rand"
|
|
"fmt"
|
|
"io"
|
|
)
|
|
|
|
func main() {
|
|
var buf [16]byte
|
|
fmt.Println(buf)
|
|
io.ReadFull(rand.Reader, buf[:])
|
|
//io.ReadFull(rand.Reader, buf)
|
|
fmt.Println(buf)
|
|
}
|