Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jan 6th, 2012  |  syntax: Go  |  size: 0.21 KB  |  hits: 90  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <T> type example interface {
  2.         Write(input T)
  3. }
  4.  
  5. <T> func exampleFunc(param example<T>) {
  6. }
  7.  
  8. type Int int
  9.  
  10. func (i Int) Write(input *unrelatedType) {
  11. }
  12.  
  13. func main() {
  14.         Int test
  15.         exampleFunc(test);
  16. }