Download go eBook


  • func (t T) exampleOne(i int) (n int) { return i } // this function will receive copy of struct
  • func (t *T) exampleTwo(i int) (n int) { return i } // this method will receive pointer to struct and will be able to modify it

Related Examples


28 Contributors: 2
Thursday, September 22, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial:

Download eBook