edition

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const (
	KindArray     = "array"
	KindLayout    = "layout"
	KindDType     = "dtype"
	KindAggregate = "aggregate"
)

Kind of an edition member.

View Source
const ID = "core 2026.08.3"

ID is the newest core edition the release supports.

View Source
const Version = "0.96.0"

Version is the upstream release the table was generated from.

Variables

This section is empty.

Functions

func Allows

func Allows(name, kind, id string) bool

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 Has

func Has(kind, id string) bool

Has reports whether the edition contains the identifier of that kind.

func Known

func Known(name string) bool

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 Names

func Names() []string

Names lists the editions of the table, oldest first.

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

func Register(kind string, ids func() []string) bool

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

func RegisterWritten(kind string, ids func() []string) bool

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.

Types

type Member

type Member struct {
	Kind  string
	ID    string
	Since string
}

Member is one identifier a reader must know.

func Members

func Members() []Member

Members returns a copy of the table.

func Missing

func Missing(decoded map[string]map[string]bool) []Member

Missing returns the members of the edition that are not in decoded, a set per kind.

type Support

type Support struct {
	Member
	Decoded bool
	Written bool
}

Support says, for one member of the edition, whether a registry has it.

func Supported

func Supported() []Support

Supported lists every member of the edition with what the registered packages decode and write. The generator of the README matrix uses it.

Jump to

Keyboard shortcuts

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