Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 546 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 546 Bytes

go-ptr

A collection of utility functions to work with pointers, commonly used for optional values.

Go Reference

Installation

go get -u github.com/cidverse/go-ptr

Usage

generics

fmt.Printf("%#v\n", ptr.Ptr("hello world"))

Primitives

fmt.Printf("%#v\n", ptr.String("hello world"))
fmt.Printf("%#v\n", ptr.Int("hello world"))

License

Released under the MIT license.