parse

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name string
	Type string
}

func ParseFields

func ParseFields(astField *ast.Field) []Field

type File

type File struct {
	PackageName string
	Imports     []string // TODO: This.
	Interfaces  []Interface
}

func ParseFile

func ParseFile(fileName string) (File, error)

type Interface

type Interface struct {
	Name    string
	Methods []Method
}

func ParseInterface

func ParseInterface(name string, interfaceType *ast.InterfaceType) Interface

type Method

type Method struct {
	Name    string
	Inputs  []Field
	Outputs []Field
}

func ParseMethod

func ParseMethod(method *ast.Field) Method

Jump to

Keyboard shortcuts

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