emit

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

The check functions are used not only for testing but also for evaluating id lists

Package emit is responsible for generating a string slice for each line. The substrings are optionally prefix, timestamp, several content substrings and postfix. Each substring can contain its own color channel as prefix ("col:"). The colors are converted later inside the disp.Print() function.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Prefix is a (configurable) string added to each line end
	Prefix = ""

	// Postfix is a (configurable) string added to each line end
	Postfix = "\n"
)

Functions

func Check

func Check(l id.ListT, dataSet string) error

Check evaluates the l output with specifiesd dataSet.

func LineCollect

func LineCollect(s string)

LineCollect collects s into an internal line substring slice When s ends with a newline it is trimmed and the slice goes to Out and is discarded afterwards

func ScCheckList

func ScCheckList(dataset string) error

ScCheckList does log the id list with a dataset

func Trice

func Trice(t, b []byte, l id.ListT) ([]byte, error)

Trice emits one trice. The byte slice 't' is a trice package. The start byte is 0xeb. The ID can be 0, in that case only the data payload is saved If b is not empty, the start byte in buffer b is 0xc0. The byte slice b contains a 8 byte header, a 2 byte len-1 value and and len buffer bytes. b is used for long runtime strings, when the format string is "%s".

Types

This section is empty.

Jump to

Keyboard shortcuts

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