sandbox

package
v0.172.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunOutcome

type RunOutcome struct {
	OK         bool
	PanicValue any
	Goexit     bool
	Frames     []runtime.Frame
}

func Run

func Run(fn func()) (ro RunOutcome)

func (RunOutcome) OnNotOK added in v0.159.0

func (ro RunOutcome) OnNotOK(blk func())

OnNotOK will execute the argument block when the OK state is false.

func (RunOutcome) Trace

func (ro RunOutcome) Trace() string

Jump to

Keyboard shortcuts

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