ptr

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone[T any](v *T) (*T, error)

Clone creates a copy of the given argument by using json.Marshal and json.Unmarshal. Therefore, this only works for arguments, that can be json marshalled. Als private attributes are not handled as a limitation of this.

func From

func From[T any](v *T) T

func To

func To[T any](v T) *T

To returns a pointer to the given value.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL