parser

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFile

func NewFile(name string) *fileT

func NewPackage

func NewPackage(name string) *packageT

func NewProject

func NewProject(root string) (*project, error)

NewProject create a new project

func WalkPackageDependencies

func WalkPackageDependencies(pkg *packageT, dependencies map[string]*packageT)

Types

type GoModuleInfo

type GoModuleInfo struct {
	// module xxx
	Name      string
	GoVersion string
}

Go mod 信息

func ParseGoModuleInfo

func ParseGoModuleInfo(path string) (*GoModuleInfo, error)

ParseGoModuleInfo parse go.mod and return GoModuleInfo

Jump to

Keyboard shortcuts

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