link

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterModulesWithoutDir

func FilterModulesWithoutDir(modules []module.Module) []module.Module

func GoBin

func GoBin(dstDir string) error

func GoPkg

func GoPkg(dstDir string) error

func GoSrc

func GoSrc(dstDir, srcDir string) error
func Link(dstDir string, opts Options) error

func Nodes

func Nodes(dir string, nodes []Node) error

Types

type Node

type Node struct {
	Segment  string
	Module   *module.Module
	Children []Node
}

func BuildModuleNodes

func BuildModuleNodes(modules []module.Module) ([]Node, error)

type Options

type Options struct {
	SrcDir    string
	SkipGoBin bool
	SkipGoSrc bool
	SkipGoPkg bool
}

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

Jump to

Keyboard shortcuts

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