Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 636 Bytes

README.md

File metadata and controls

30 lines (18 loc) · 636 Bytes

ptr GoDoc Go Report Card

ptr contains functions for simplified creation of pointers from constants of basic types.

Installation

go get github.com/akabos/ptr

Examples

This code:

p := ptr.Int(10)

is the equivalent for:

i := int(10)
p := &i  

Documentation

GoDoc

License

Apache 2.0