Pointers

Download go eBook

Syntax

  • pointer := &variable // get pointer from variable
  • variable := *pointer // get variable from pointer
  • *pointer = value // set value from variable through the pointer
  • pointer := new(Struct) // get pointer of new struct

Related Examples

Stats

69 Contributors: 7
Tuesday, January 17, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook