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/withCaller_disabled.go

26 lines
587 B
Go
Raw Normal View History

2018-12-22 17:38:56 +04:00
// +build !debug
package dlog
// D dumps a value
func (*WithCaller) D(v ...interface{}) {}
// F is a build-time enabled printf
func (*WithCaller) F(f string, v ...interface{}) {}
// P is a build-time enabled print
func (*WithCaller) P(v ...interface{}) {}
// Ln is a build-time enabled println
func (*WithCaller) Ln(v ...interface{}) {}
// GetCaller is a build-time disabled caller determining.
// Returns caller's file, line and func name
func GetCaller(_ ...int) (*Caller, bool) {
return &Caller{
File: CallerUnknown,
Line: 0,
FuncName: CallerUnknown,
}, false
}