Documentation
¶
Overview ¶
Package edition holds the members of the newest core edition the pinned upstream release supports. The table is generated by scripts/edition.sh.
Index ¶
- Constants
- func Allows(name, kind, id string) bool
- func Has(kind, id string) bool
- func Known(name string) bool
- func Met(kind, id string)
- func Names() []string
- func Observe(f func(kind, id string))
- func Register(kind string, ids func() []string) bool
- func RegisterWritten(kind string, ids func() []string) bool
- type Member
- type Support
Constants ¶
const ( KindArray = "array" KindLayout = "layout" KindDType = "dtype" KindAggregate = "aggregate" )
Kind of an edition member.
const ID = "core 2026.08.3"
ID is the newest core edition the release supports.
const Version = "0.96.0"
Version is the upstream release the table was generated from.
Variables ¶
This section is empty.
Functions ¶
func Allows ¶
Allows reports whether a file that targets the edition may hold the identifier of that kind: the edition is the member's own or a later one. An identifier that is not in the table, and an unknown edition, are not allowed. Editions are ordered by their date.
func Known ¶
Known reports whether name is an edition of the table: the newest, or one that added a member.
func Met ¶
func Met(kind, id string)
Met tells the observer, if any, that a reader met the identifier.
func Observe ¶
func Observe(f func(kind, id string))
Observe sets the function told of each identifier met while reading, nil to stop. It is for test builds: the hot path only loads a pointer.
func Register ¶
Register declares the identifiers of one kind that a package decodes. It returns true so that it can initialize a package-level variable.
func RegisterWritten ¶
RegisterWritten declares the identifiers of one kind that a package writes, besides those of the other packages that did. It returns true so that it can initialize a package-level variable.