parser

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrNotFound describe an error when can't find module name
	ErrNotFound = errors.New("name not found")
)

Functions

func Parse

func Parse(reader io.Reader) (string, error)

Parse parses file passed as a reader and returns module name out of it.

Types

type GomodParser

type GomodParser interface {
	ModuleName() (string, error)
}

GomodParser retrieves module name from parsable source

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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