internal

package
Version: v0.0.0-...-59e6379 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 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