Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
func Check(required string, descriptor Descriptor) error
Types ¶
type Descriptor ¶
type Descriptor struct {
FormatVersion int `json:"format-version"`
ImplementedAPIs []string `json:"implemented-apis"`
GeneratorAPI string `json:"generator-api"`
}
func Current ¶
func Current() Descriptor
func ReadDescriptor ¶
func ReadDescriptor(moduleFS fs.FS) (Descriptor, error)
func (Descriptor) Validate ¶
func (d Descriptor) Validate() error
type NewerMinorError ¶
func (*NewerMinorError) Error ¶
func (e *NewerMinorError) Error() string
type UnsupportedMajorError ¶
func (*UnsupportedMajorError) Error ¶
func (e *UnsupportedMajorError) Error() string
Click to show internal directories.
Click to hide internal directories.