mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 11:37:46 +00:00
os: implement virtual filesystem support
This allows applications to mount filesystems in the os package. This is useful for mounting external flash filesystems, for example.
This commit is contained in:
committed by
Ron Evans
parent
e907db1481
commit
6bcb40fe01
Vendored
+3
-3
@@ -9,9 +9,9 @@ import (
|
||||
|
||||
func main() {
|
||||
// package os, fmt
|
||||
fmt.Println("stdin: ", os.Stdin.Fd())
|
||||
fmt.Println("stdout:", os.Stdout.Fd())
|
||||
fmt.Println("stderr:", os.Stderr.Fd())
|
||||
fmt.Println("stdin: ", os.Stdin.Name())
|
||||
fmt.Println("stdout:", os.Stdout.Name())
|
||||
fmt.Println("stderr:", os.Stderr.Name())
|
||||
|
||||
// package math/rand
|
||||
fmt.Println("pseudorandom number:", rand.Int31())
|
||||
|
||||
Reference in New Issue
Block a user