Help us shape the future of Go! Take the 2026 Go Developer Survey

appendorigin

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package appendorigin carries SDK-owned unit completion attribution across package boundaries. External callers cannot construct this capability.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unit

func Unit[T, B comparable](ctx context.Context, batch B) (T, bool)

Unit returns an SDK-installed origin only for the owner's exact batch. Even callbacks receiving this context cannot bypass resolution for other appends.

func WithUnit

func WithUnit[T, B comparable](ctx context.Context, origin T, batch B) context.Context

WithUnit installs an explicit origin for only this unit's prepared batch.

Types

This section is empty.

Jump to

Keyboard shortcuts

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