Skip to content

cidverse/go-ptr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages