intern

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

type Handle[T comparable] struct {
	// contains filtered or unexported fields
}

Handle is wrapper around unique.Handle[string] but it implements json.Unmarshaler and json.Marshaler.

func Make

func Make[T comparable](v T) Handle[T]

func (Handle[T]) MarshalJSON

func (s Handle[T]) MarshalJSON() ([]byte, error)

func (*Handle[T]) UnmarshalJSON

func (s *Handle[T]) UnmarshalJSON(data []byte) error

func (Handle[T]) Value

func (s Handle[T]) Value() T

Jump to

Keyboard shortcuts

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