gopprojs

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: May 17, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMixedFilesProj is returned when a project contains both files and non-files
	ErrMixedFilesProj = errors.New("mixed files project")
)

Functions

This section is empty.

Types

type DirProj

type DirProj struct {
	Dir string
}

DirProj represents a project with a directory

type FilesProj

type FilesProj struct {
	Files []string
}

FilesProj represents a project with files

type PkgPathProj

type PkgPathProj struct {
	Path string
}

PkgPathProj represents a project with a package path

type Proj

type Proj = interface {
	// contains filtered or unexported methods
}

Proj is the interface for a project

func ParseAll

func ParseAll(args ...string) (projs []Proj, err error)

ParseAll parses all arguments and returns a slice of Proj objects

func ParseOne

func ParseOne(args ...string) (proj Proj, next []string, err error)

ParseOne parses the first argument and returns a Proj object If the first argument is a file, it continues to parse subsequent arguments.

Jump to

Keyboard shortcuts

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