Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MethodCodeBoundaries ¶
type MethodCodeBoundaries struct {
Package string
Name string
File string
Start CodePos
End CodePos
}
func GetFuncSource ¶
func GetFuncSource(pc uintptr) (*MethodCodeBoundaries, error)
Gets the function source code boundaries from a method
func GetFuncSourceForName ¶
func GetFuncSourceForName(pc uintptr, name string) (*MethodCodeBoundaries, error)
Gets the function source code boundaries from a method
func GetFuncSourceFromCaller ¶
func GetFuncSourceFromCaller(skip int) (*MethodCodeBoundaries, error)
Gets the function source code boundaries from the caller method
Source Files
¶
- sources.go
Click to show internal directories.
Click to hide internal directories.