core

package
v0.0.0-...-0830378 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommaSplit

func CommaSplit(csv string) []string

func Exists

func Exists(path string) bool

func ExpandPath

func ExpandPath(path string) (string, error)

func SepSplit

func SepSplit(sv string, sep string) []string

func Trim

func Trim(s string) string

func TrimRight

func TrimRight(s string) string

func UniqueInts

func UniqueInts(a []int, sorted bool) []int

Types

type Job

type Job func() error

type Runner

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

func NewRunner

func NewRunner(consumers int, name string) *Runner

func (*Runner) Run

func (r *Runner) Run(j Job)

func (*Runner) Start

func (r *Runner) Start()

func (*Runner) Stop

func (r *Runner) Stop()

func (*Runner) Wait

func (r *Runner) Wait()

Jump to

Keyboard shortcuts

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