internal

package
v0.0.0-...-fe70a9a Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error, msg string) error

func Host

func Host(start, stop func())

强制退出/自动运行结束

func HostWithContext

func HostWithContext(app func(context.Context, chan struct{}), args ...Arg)

func PProf

func PProf(start, stop func())

func Trace

func Trace(start, stop func())

Types

type Arg

type Arg interface {
}

for type assert

type TempArg

type TempArg struct {
	Arg
	Value int
}

type TimeoutArg

type TimeoutArg struct {
	Arg
	T time.Duration
}

Jump to

Keyboard shortcuts

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