ast

package
v0.0.0-...-acc9957 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(name string) string

func ParseMethods

func ParseMethods(method Method) model.Method

func ParseModel

func ParseModel(contents File, options ...model.Option) []model.Model

Types

type Annotation

type Annotation struct {
	Key   string
	Value string
}

type Annotations

type Annotations struct {
	Ans []Annotation
}

type Field

type Field struct {
	GoName string
	GoType string
	Annotations
}

type File

type File struct {
	Annotations
	TypeNodes []TypeNode
	PkgName   string
}

func LookUp

func LookUp(path string, src any) File

type Method

type Method struct {
	FuncName string
	Results  []string
	Params   []model.Parameter
	Annotations
}

type TypeNode

type TypeNode struct {
	Annotations
	Fields  []Field
	GoName  string
	Methods []Method
}

Jump to

Keyboard shortcuts

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