parser

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 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 FileMeta

type FileMeta struct {
	FileName string
	FSet     *token.FileSet
	ASTFile  *ast.File
	Content  []byte
}

FileMeta file meta

func ParseContent

func ParseContent(filename string, content []byte) (meta FileMeta, err error)

ParseContent parse go source content

func ParseFile

func ParseFile(filename string) (meta FileMeta, err error)

ParseFile parse go source file

Jump to

Keyboard shortcuts

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