annotation

package
v0.0.0-...-4a856ae Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 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 ASTField

type ASTField struct {
	Group[*ast.Field]
}

type ASTFile

type ASTFile struct {
	Group[*ast.File]
	Types []ASTType
}

type ASTType

type ASTType struct {
	Group[*ast.TypeSpec]
	Fields []ASTField
}

type Group

type Group[N ast.Node] struct {
	Node N
	List []Single
}

func FromCommentGroup

func FromCommentGroup[N ast.Node](node N, cg *ast.CommentGroup) Group[N]

func (Group[N]) Get

func (g Group[N]) Get(key string) (Single, bool)

type Single

type Single struct {
	Key   string
	Value string
}

func FromComment

func FromComment(c *ast.Comment) (Single, bool)

Jump to

Keyboard shortcuts

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