trace

package
v0.0.0-...-c234f5e Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Trace

func Trace() func()
Example
package main

import (
	trace "github.com/upupnoah/go-basic-future/go-core-tony/practice/defer-trace/instrument_trace"
)

func a() {
	defer trace.Trace()()
	b()
}

func b() {
	defer trace.Trace()()
	c()
}

func c() {
	defer trace.Trace()()
	d()
}

func d() {
	defer trace.Trace()
}

func main() {
	a()
	// 提供预期输出, 预期输出从Output开始
	
Output:

Types

This section is empty.

Directories

Path Synopsis
cmd
ast

Jump to

Keyboard shortcuts

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