Exemple #1
0
func main() {
	fsys, err := client.MountService("acme")
	if err != nil {
		panic(err)
	}

	fid, err := fsys.Open("index", plan9.OREAD)
	if err != nil {
		panic(err)
	}

	fid.Write([]byte("hello, world"))

	io.Copy(os.Stdout, fid)
	fid.Close()

	d, err := fsys.Stat("/index")
	if err != nil {
		panic(err)
	}
	fmt.Printf("%v\n", d)

	fsys.Wstat("/index", d)
}
Exemple #2
0
func mountAcme() {
	fsys, fsysErr = client.MountService("acme")
}
Exemple #3
0
func mountPlumb() {
	fsys, fsysErr = client.MountService("plumb")
}