parser

package
Version: v0.0.0-...-41735c7 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommentOrPackage = iota
	URLOr
)
View Source
const (
	TokenComment = "//"
	TokenRev     = "#"
	TokenURL     = "!"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Pkg string
	Rev string
	URL string
}

func Parse

func Parse(r io.Reader) ([]*Dependency, error)

func (*Dependency) String

func (d *Dependency) String() string

type ParseError

type ParseError struct {
	LineNum  uint
	LineText string
	Message  string
}

func (*ParseError) Error

func (e *ParseError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL