Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Sign up
/ptrPublic

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

License

NotificationsYou must be signed in to change notification settings

gotidy/ptr

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp