yarn

package
v0.0.0-...-38cc094 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParser

func NewParser() types.Parser

Types

type Dependency

type Dependency struct {
	Pattern string
	Name    string
}

type Library

type Library struct {
	Patterns []string
	Name     string
	Version  string
	Location types.Location
}

type LineScanner

type LineScanner struct {
	*bufio.Scanner
	// contains filtered or unexported fields
}

func NewLineScanner

func NewLineScanner(r io.Reader) *LineScanner

func (*LineScanner) LineNum

func (s *LineScanner) LineNum(prevNum int) int

func (*LineScanner) Scan

func (s *LineScanner) Scan() bool

type LockFile

type LockFile struct {
	Dependencies map[string]Dependency
}

type Parser

type Parser struct{}

func (*Parser) Parse

func (p *Parser) Parse(r dio.ReadSeekerAt) ([]types.Library, []types.Dependency, error)

Jump to

Keyboard shortcuts

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