Archived
1
This repository has been archived on 2022-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
fwzookeeper/vendor/github.com/kirillDanshin/dlog/caller.go

15 lines
226 B
Go
Raw Normal View History

2018-12-22 17:38:56 +04:00
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)
}