//file name : example_test.go
package XXX_test
// The output of this example function. func ExampleXXX() { fmt.Println("The output of this example function.") }
$ go test
ok XXX
PASS
edit :
// The output of this example functionXXX. then
$ go test
FAIL XXX
--- FAIL: ExampleXXX (0.00 seconds)
got:
The output of this example functionXXX
want:
The output of this example function.
FAIL
Chris
--
Chris "allusive" Dollin