Skip to content
forked from gotidy/ptr

Contains functions for simplified creation of pointers from constants of basic types

License

Notifications You must be signed in to change notification settings

standardgalactic/ptr

 
 

Repository files navigation

ptr GoDoc Go Report Card Mentioned in Awesome Go

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

Installation

go get github.com/gotidy/ptr

Examples

This code:

p := ptr.Int(10)

is the equivalent for:

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

Documentation

GoDoc

License

Apache 2.0

About

Contains functions for simplified creation of pointers from constants of basic types

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.5%
  • Makefile 1.5%