ptr
contains functions for simplified creation of pointers from constants of basic types.
go get github.com/akabos/ptr
This code:
p := ptr.Int(10)
is the equivalent for:
i := int(10)
p := &i
ptr
contains functions for simplified creation of pointers from constants of basic types.
go get github.com/akabos/ptr
This code:
p := ptr.Int(10)
is the equivalent for:
i := int(10)
p := &i