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

26 lines
587 B
Go

// +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
}