GitHub - gotidy/ptr: Contains functions for simplified creation of pointers from constants of basic types (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

gotidy / ptr Public

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

License

Apache-2.0 license

28 stars 3 forks Branches Tags Activity

Star

Notifications You must be signed in to change notification settings

Additional navigation options

BranchesTags

Folders and files

Name Name Last commit message Last commit date
Latest commitHistory15 Commits
.github/workflows .github/workflows
.gitignore .gitignore
LICENSE LICENSE
Makefile Makefile
README.md README.md
go.mod go.mod
ptr.go ptr.go
ptr_test.go ptr_test.go
to.go to.go
to_test.go to_test.go
todef.go todef.go
todef_test.go todef_test.go

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.

Support for generics has been implemented since version 1.4.0. Required 1.18 or later version of Go.

Installation

go get github.com/gotidy/ptr

Examples

This code:

p := ptr.Of(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

Topics

go golang golang-library pointers golang-package ptr

Resources

Readme

License

Apache-2.0 license

Activity

Custom properties

Stars

28 stars

Watchers

1 watching

Forks

3 forks

Report repository

Releases

6 tags

Packages

No packages published

Languages