godoc: make example code more readable with new comment convention
go/doc: move Examples to go/ast
cmd/go: use go/doc to read examples
src/pkg: update examples to use new convention

This is to make whole file examples more readable. When presented as a
complete function, preceding an Example with its output is confusing.
The new convention is to put the expected output in the final comment
of the example, preceded by the string "output:" (case insensitive).

An idiomatic example looks like this:

// This example demonstrates Foo by doing bar and quux.
func ExampleFoo() {
        // example body that does bar and quux

        // Output:
        // example output
}

R=rsc, gri
CC=golang-dev
https://golang.org/cl/5673053
diff --git a/src/pkg/encoding/binary/example_test.go b/src/pkg/encoding/binary/example_test.go
index 297d6c1..405ea67 100644
--- a/src/pkg/encoding/binary/example_test.go
+++ b/src/pkg/encoding/binary/example_test.go
@@ -11,7 +11,6 @@
 	"math"
 )
 
-// 18 2d 44 54 fb 21 09 40
 func ExampleWrite() {
 	buf := new(bytes.Buffer)
 	var pi float64 = math.Pi
@@ -20,9 +19,9 @@
 		fmt.Println("binary.Write failed:", err)
 	}
 	fmt.Printf("% x", buf.Bytes())
+	// Output: 18 2d 44 54 fb 21 09 40
 }
 
-// cafebabe
 func ExampleWrite_multi() {
 	buf := new(bytes.Buffer)
 	var data = []interface{}{
@@ -37,9 +36,9 @@
 		}
 	}
 	fmt.Printf("%x", buf.Bytes())
+	// Output: cafebabe
 }
 
-// 3.141592653589793
 func ExampleRead() {
 	var pi float64
 	b := []byte{0x18, 0x2d, 0x44, 0x54, 0xfb, 0x21, 0x09, 0x40}
@@ -49,4 +48,5 @@
 		fmt.Println("binary.Read failed:", err)
 	}
 	fmt.Print(pi)
+	// Output: 3.141592653589793
 }