Documentation
¶
Index ¶
Constants ¶
View Source
const SchemaVersion = 3
SchemaVersion is the version of the schema used to generate the lock file
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GoPackage ¶
type GoPackage struct { GoPackagePath string `toml:"-"` Version string `toml:"version"` Hash string `toml:"hash"` ReplacedPath string `toml:"replaced,omitempty"` }
GoPackage is a struct to hold Nix Go module parameters
type Output ¶
type Output struct { SchemaVersion int `toml:"schema"` Mod map[string]GoPackage `toml:"mod"` // Packages with passed import paths trigger `go install` based on this list SubPackages []string `toml:"subPackages,omitempty"` // Packages with passed import paths has a "default package" which pname & version is inherit from GoPackagePath string `toml:"goPackagePath,omitempty"` }
Output is the output of the generator
type ParallellExecutor ¶
type ParallellExecutor struct {
// contains filtered or unexported fields
}
ParallellExecutor - Execute callback functions in parallell
func NewParallellExecutor ¶
func NewParallellExecutor(maxWorkers int) *ParallellExecutor
NewParallellExecutor - Create a new ParallellExecutor
func (*ParallellExecutor) Add ¶
func (e *ParallellExecutor) Add(fn func() error)
Add - Add a new callback function to the executor
func (*ParallellExecutor) Wait ¶
func (e *ParallellExecutor) Wait() error
Wait - Wait for all callbacks to finish and return the first error
Click to show internal directories.
Click to hide internal directories.