Source File
deprecation.go
Belonging Package
src.elv.sh/pkg/eval
package evalimport ()type deprecationRegistry struct {registered map[deprecation]struct{}}func () deprecationRegistry {return deprecationRegistry{registered: make(map[deprecation]struct{})}}type deprecation struct {srcName stringlocation diag.Rangingmessage string}// Registers a deprecation, and returns whether it was registered for the first// time.func ( *deprecationRegistry) ( deprecation) bool {if , := .registered[]; {return false}.registered[] = struct{}{}return true}
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)