yarn

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 12 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 {
	// contains filtered or unexported fields
}

func (*Parser) Parse

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

Jump to

Keyboard shortcuts

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