github.com/aykevl/tinygo@v0.5.0/testdata/stdlib.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"math/rand"
     6  	"os"
     7  )
     8  
     9  func main() {
    10  	fmt.Println("stdin: ", os.Stdin.Fd())
    11  	fmt.Println("stdout:", os.Stdout.Fd())
    12  	fmt.Println("stderr:", os.Stderr.Fd())
    13  
    14  	fmt.Println("pseudorandom number:", rand.Int31())
    15  }