generic

package
v1.2.118 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 4 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateType

type TemplateType struct {
	Type       string // The type's name.
	Import     string // import path of the type.
	IsPointer  bool   // whether the value's type is ptr
	TypePrefix string // The type's prefix, such as [][]
}

func (*TemplateType) String

func (typ *TemplateType) String() string

type TypeInfo

type TypeInfo struct {
	// These fields are reset for each type being generated.
	Name   string // Name of the sync.Map type.
	Import string // import path of the sync.Map type.

	TemplateTypes []TemplateType
}

GenericType<TemplateType0,TemplateType1,...> Map<github.com/searKing/golang/tools/common/ast/generic.TypeInfo, int>

func New

func New(input string) []TypeInfo

func Parser

func Parser(tokens []ast.Token) []TypeInfo

Jump to

Keyboard shortcuts

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