module

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InDir

type InDir string

func (InDir) ApplyToOpenGoList

func (d InDir) ApplyToOpenGoList(o *OpenGoListOptions)

type Module

type Module struct {
	Path    string
	Dir     string
	Version string
	Main    bool
}

func ReadAll

func ReadAll(r Reader) ([]Module, error)

func ReadAllGoListModules

func ReadAllGoListModules(opts ...OpenGoListOption) ([]Module, error)

type OpenGoListOption

type OpenGoListOption interface {
	ApplyToOpenGoList(o *OpenGoListOptions)
}

type OpenGoListOptions

type OpenGoListOptions struct {
	Dir     string
	Command func() *exec.Cmd
}

func (*OpenGoListOptions) ApplyOptions

func (o *OpenGoListOptions) ApplyOptions(opts []OpenGoListOption)

func (*OpenGoListOptions) ApplyToOpenGoList

func (o *OpenGoListOptions) ApplyToOpenGoList(o2 *OpenGoListOptions)

type ReadCloser

type ReadCloser interface {
	Reader
	io.Closer
}

func OpenGoList

func OpenGoList(opts ...OpenGoListOption) (ReadCloser, error)

type Reader

type Reader interface {
	Read(data []Module) (int, error)
}

Jump to

Keyboard shortcuts

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