fc

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectDefs

func CollectDefs(node ast.Node) map[string]struct{}

Types

type File

type File struct {
	Pkg     *Package  // Package to which this file belongs.
	Ast     *ast.File // Parsed AST.
	Imports map[string]string
}

File holds a single parsed file and associated data.

type Package

type Package struct {
	Name  string
	Path  string
	Defs  map[*ast.Ident]types.Object
	Files []*File
}

func NewPackages

func NewPackages(
	patterns,
	tags []string,
) ([]*Package, error)

type Struct

type Struct struct {
	Name   string
	Type   *ast.StructType
	Params *ast.FieldList
}

func CollectStructs

func CollectStructs(node ast.Node) []Struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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