internal

package
v0.0.0-...-b83fb8d Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

parallelfor.go by Jelle van den Hooff

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParallelFor

func ParallelFor(n int, f func(p *P))

func ReadJSONFile

func ReadJSONFile(path string, val interface{})

Types

type GP

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

func (*GP) Next

func (gp *GP) Next() (int64, bool)

type GuiFormatter

type GuiFormatter struct{}

func (*GuiFormatter) Format

func (f *GuiFormatter) Format(entry *log.Entry) ([]byte, error)

TODO gocui doesn't support color text: https://github.com/jroimartin/gocui/issues/9

type P

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

func (*P) Next

func (p *P) Next() (int, bool)

type ServerFormatter

type ServerFormatter struct{}

func (*ServerFormatter) Format

func (f *ServerFormatter) Format(entry *log.Entry) ([]byte, error)

type Span

type Span struct {
	Start int
	Count int
}

func Spans

func Spans(total, spanSize int) []Span

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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