A minor modification to that; if the const declaration is done as shown
here https://play.golang.org/p/CkztBS-Wkvm you get the constants
rendered near the type rather than at the top of the godoc page.

On Thu, 2018-09-06 at 09:58 +1000, Nigel Tao wrote:
> You can implement a String method on that integer-type (in Go, unlike
> C++, integer-types can have methods), for human-readable debugging or
> for re-serialization. For example:
> https://play.golang.org/p/u9zC3CKumb0

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to