Skip to content

Go package pointer provides a convenient way to work with pointers

Notifications You must be signed in to change notification settings

kittizz/pointer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

pointer

Go Reference

Go package pointer provides a convenient way to work with pointers, especially when dealing with basic data types and generics in Go. This package simplifies the creation and manipulation of pointers for various types, leveraging Go's generics feature introduced in Go 1.18. With pointer, developers can easily generate pointers for any given value without the need to manually allocate memory or deal with the verbosity of referencing and dereferencing values.

go get github.com/kittizz/pointer

example

package main

import "github.com/kittizz/pointer"

func main() {
	pointer := pointer.Of[string]("hello")
	println(pointer, *pointer)
}

About

Go package pointer provides a convenient way to work with pointers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages