annotation

package
v0.0.0-...-e7d4c05 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	Key   string
	Value string
}

type Annotations

type Annotations[N ast.Node] struct {
	Node N
	Ans  []Annotation
}

func (Annotations[N]) Get

func (a Annotations[N]) Get(key string) (Annotation, bool)

type Field

type Field struct {
	Annotations[*ast.Field]
}

type File

type File struct {
	Annotations[*ast.File]
	Types []Type
}

type SingleFileEntryVisitor

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

func (*SingleFileEntryVisitor) Get

func (s *SingleFileEntryVisitor) Get() File

func (*SingleFileEntryVisitor) Visit

func (s *SingleFileEntryVisitor) Visit(node ast.Node) ast.Visitor

type Type

type Type struct {
	Annotations[*ast.TypeSpec]
	Fields []Field
}

Jump to

Keyboard shortcuts

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