parser

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2025 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 GoModParser

type GoModParser struct {
	// contains filtered or unexported fields
}

GoModParser parses go.mod files and extracts direct dependencies

func NewGoModParser

func NewGoModParser(filePath string) *GoModParser

NewGoModParser creates a new GoModParser instance

func NewParserForCurrentDirectory

func NewParserForCurrentDirectory() (*GoModParser, error)

NewParserForCurrentDirectory creates a new GoModParser for the go.mod file in the current directory

func (*GoModParser) Parse

func (p *GoModParser) Parse() ([]*model.Package, error)

Parse parses the go.mod file and returns a list of direct dependencies

Jump to

Keyboard shortcuts

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