data

package
v0.258.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Extractor extracts schema.Data to the module schema.
	Extractor = common.NewDeclExtractor[*schema.Data, *ast.TypeSpec]("data", (*Fact)(nil), Extract)
)

Functions

func Extract

func Extract(pass *analysis.Pass, node *ast.TypeSpec, obj types.Object) optional.Option[*schema.Data]

Types

type Fact

type Fact struct {
	// contains filtered or unexported fields
}

func (*Fact) AFact

func (t *Fact) AFact()

func (*Fact) Get

func (t *Fact) Get() common.SchemaFactValue

func (*Fact) Set

func (t *Fact) Set(v common.SchemaFactValue)

Jump to

Keyboard shortcuts

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