Since go did not support generic yet ,
Generate give us a alternative choice .
However,  although I read the official document.  
I still don't know how to use go generate to generate code.
Could anyone show us an example ?

Let's take   std::min in c++ us an example.
min(x,y)       // type could be int int32 int64 int8  uint....   float??
min(x,y,z,a,b......)  //Variable-length Argument 

-- 
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