This repository has been archived on 2022-11-04. You can view files and clone it, but cannot push or open issues/pull-requests.
|
package dlog
|
|
|
|
import "fmt"
|
|
|
|
// Caller info
|
|
type Caller struct {
|
|
File string
|
|
Line int
|
|
FuncName string
|
|
}
|
|
|
|
func (c *Caller) String() string {
|
|
return fmt.Sprintf("Called from %s:%d (%s)", c.File, c.Line, c.FuncName)
|
|
}
|