Example #1
0
File: cat.go Project: rjkroege/go
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)
}
Example #2
0
func mountAcme() {
	fsys, fsysErr = client.MountService("acme")
}
Example #3
0
File: plumb.go Project: rjkroege/go
func mountPlumb() {
	fsys, fsysErr = client.MountService("plumb")
}