deprecation

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package deprecation provides a one-time structured warning helper for deprecated GoWebComponents APIs. Each unique API symbol is warned exactly once across concurrent callers; subsequent calls for the same symbol are no-ops.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Warn

func Warn(parseAPI string, parseReplacement string)

Warn emits a structured deprecation diagnostic for parseAPI exactly once. Subsequent calls with the same parseAPI value are silent no-ops. When parseReplacement is non-empty the diagnostic's Next field advises callers to switch to that replacement symbol; when empty, no advice is added.

func WarnEmitted

func WarnEmitted(parseAPI string) bool

WarnEmitted reports whether a deprecation warning has already been emitted for parseAPI. It is a test seam that lets callers verify Warn fired without inspecting stderr.

Types

This section is empty.

Jump to

Keyboard shortcuts

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