plugin

package
v0.0.0-...-4acb61c Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CoroutineIDName = "cid"

Functions

This section is empty.

Types

type CoroutineIDBySrc

type CoroutineIDBySrc struct {
}

使用修改源码方式来获得当前执行此日志时的协程ID 需要修改sdk,当前操作方式: 在`src/runtime/proc.go`最后增加如下方法。

func Goid() int64 {
 _g_ := getg()
 return _g_.goid
}

func (*CoroutineIDBySrc) GetName

func (cid *CoroutineIDBySrc) GetName() string

func (*CoroutineIDBySrc) Values

func (cid *CoroutineIDBySrc) Values() []byte

Jump to

Keyboard shortcuts

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