SkillAgentSearch skills...

Ptr

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

Install / Use

/learn @gotidy/Ptr
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars28
CategoryDevelopment
Updated11mo ago
Forks3

Languages

Go

Security Score

87/100

Audited on Apr 10, 2025

No findings