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 ¶
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 ¶
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.