identity

package
v0.16.0 Latest Latest
Warning

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

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

Documentation

Overview

Package identity compares open interface values without imposing comparability on implementations supplied by component users.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Same

func Same(a, b any) bool

Same reports whether a and b demonstrably name the same object.

Interface equality is not an identity primitive: it panics when a caller's concrete component contains a slice, map, or function. Comparable values can answer directly. Maps have stable runtime identity despite not being comparable as interface values. Everything else is conservatively different; an ownership boundary may repeat a focus transition, but it must never retain a gesture or a lease merely because two values happen to have equal-looking storage.

Types

This section is empty.

Jump to

Keyboard shortcuts

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