probes

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 3 Imported by: 7

README

(Go) Probes

These probes are here to inform you, to do stuff for you, and to nuke your program when necessary.

00:01:10 [Main] The answer to life the universe and everything: 42
Log Probe

The logging probe just writes the message you give it, to its file.

Function Probe

This probe writes the fact it got probed, and procedes to execute its given function.

Assertion Probe

This probe asserts X and Y, checks whether or not they should be equal. And whether or not the failing of the assertion should result in a panic.

Documentation

Index

Constants

View Source
const (
	IsFatal  = true
	NotFatal = false
	AreEqual = true
	NotEqual = false
)

Variables

This section is empty.

Functions

func NewAssertProbe

func NewAssertProbe(label string, fd *os.File, fatal bool) *assertProbe

Allocate assertion probe

func NewFuncProbe

func NewFuncProbe(label string, fd *os.File, fn func(...interface{})) *funcProbe

Allocate function probe

func NewLogProbe

func NewLogProbe(label string, fd *os.File) *logProbe

Allocate logging probe

Types

This section is empty.

Jump to

Keyboard shortcuts

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