15 lines
226 B
Go
15 lines
226 B
Go
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)
|
|
}
|