I'm trying to run example in test.
However after running, warning is shown.
testing: warning: no tests to run
This example code includes comment // Output comment.
func ExampleMethod1() {
fmt.Printf("result: %x", Method1())
// Output: xxxx
}
What is wrong? When running test, I executed like this.
go test -v xxxx_test.go
Thanks.
Harry