util

package
v0.0.0-...-fcffdc5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FIXME

func FIXME(msg string)

mark things to be done in a way that won't get forgotten

func NiceToHave

func NiceToHave(msg string)

func RunInParallel

func RunInParallel(targets ...func() error) error

func SHA256sum

func SHA256sum(file string) (string, error)

Types

type ParallelElements

type ParallelElements struct {
	// contains filtered or unexported fields
}

func NewParallel

func NewParallel() *ParallelElements

func (*ParallelElements) Add

func (p *ParallelElements) Add(target func() error)

func (*ParallelElements) Join

func (p *ParallelElements) Join() error

type SingleThread

type SingleThread struct {
	// contains filtered or unexported fields
}

func NewSingleThread

func NewSingleThread() *SingleThread

func (*SingleThread) Run

func (st *SingleThread) Run(name string, f func())

runs the command on the single thread

Jump to

Keyboard shortcuts

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