annotate

package
v0.0.0-...-27647ab Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotator

type Annotator interface {
	Field(n string, anns ...any) Annotator
	Method(n string, anns ...any) Annotator
}

func On

func On[T any](anns ...any) Annotator

type Member

type Member struct {
	K MemberKind
	N string
}

func Field

func Field(n string) Member

func Method

func Method(n string) Member

type MemberKind

type MemberKind int8
const (
	FieldMember MemberKind = iota + 1
	MethodMember
)

func (MemberKind) String

func (k MemberKind) String() string

type Registry

type Registry interface {
	Get(obj any) []any
	GetOf(obj any, ty reflect.Type) []any
}

type TypeAnnotations

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

func (*TypeAnnotations) Type

func (ta *TypeAnnotations) Type() reflect.Type

type TypeAnnotationsMap

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

func Global

func Global() *TypeAnnotationsMap

func NewTypeAnnotationsMap

func NewTypeAnnotationsMap() *TypeAnnotationsMap

func (*TypeAnnotationsMap) Get

Directories

Path Synopsis
dev

Jump to

Keyboard shortcuts

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