Skip to content

Latest commit

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date

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"funcmain() {
pointer:= pointer.Of[string]("hello")
println(pointer, *pointer)
}

About

Go package pointer provides a convenient way to work with pointers

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages