github.com/switchupcb/yaegi@v0.10.2/_test/io0.go (about)

     1  package main
     2  
     3  import (
     4  	"crypto/rand"
     5  	"fmt"
     6  	"io"
     7  )
     8  
     9  func main() {
    10  	var buf [16]byte
    11  	fmt.Println(buf)
    12  	io.ReadFull(rand.Reader, buf[:])
    13  	//io.ReadFull(rand.Reader, buf)
    14  	fmt.Println(buf)
    15  }