GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gotidy/ptr: Contains functions for simplified creation of pointers from constants of basic types

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
.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

gogolanggolang-librarygolang-packagepointersptr

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

30 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.