runtime: goroutine stack exceeds 250000000-byte limit
fatal error: stack overflow
runtime stack:
runtime.throw(0x183cb0, 0xe)
/usr/local/go/src/runtime/panic.go:527 +0x100
runtime.newstack()
/usr/local/go/src/runtime/stack1.go:794 +0x1000
Except when printed using the verbs %T and %p, special formatting considerations apply for operands that implement certain interfaces. In order of application:
1. If the operand is a reflect.Value, the concrete value it holds is printed as if it was the operand.
2. If an operand implements the Formatter interface, it will be invoked. Formatter provides fine control of formatting.
3. If the %v verb is used with the # flag (%#v) and the operand implements the GoStringer interface, that will be invoked.
If the format (which is implicitly %v for Println etc.) is valid for a string (%s %q %v %x %X), the following two rules apply:
4. If an operand implements the error interface, the Error method will be invoked to convert the object to a string, which will then be formatted as required by the verb (if any).
5. If an operand implements method String() string, that method will be invoked to convert the object to a string, which will then be formatted as required by the verb (if any).
Your type doesn't match any of 1-4 above, but it does match 5, so it uses that before falling back on the special handling for []byte.--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.