fileinfo

package
v0.0.0-...-7014987 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrImportPathNotString = errors.New("import path is not a string")
)

Functions

func FindFileInfos

func FindFileInfos(root string, option walk.Option) (map[string]*FileInfo, error)

Types

type Declaration

type Declaration struct {
	Parent *FileInfo
	Name   string
	Pos    token.Position
	End    token.Position
}

type FileInfo

type FileInfo struct {
	Filename     string
	Package      string
	Entrypoints  set.Set[string]
	Declarations map[string]Declaration
	Imports      set.Set[Import]
}

type Import

type Import struct {
	Name string
	Path string
}

Jump to

Keyboard shortcuts

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