Documentation ¶ Index ¶ func Clone[T any](v *T) (*T, error) func From[T any](v *T) T func To[T any](v T) *T 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. Source Files ¶ View all Source files clone.goptr.go Click to show internal directories. Click to hide internal directories.