MCPcopy
hub / github.com/gogf/gf / Errorf

Function Errorf

internal/intlog/intlog.go:55–60  ·  view source on GitHub ↗

Errorf prints `v` with format `format` using fmt.Printf.

(ctx context.Context, format string, v ...any)

Source from the content-addressed store, hash-verified

53
54// Errorf prints `v` with format `format` using fmt.Printf.
55func Errorf(ctx context.Context, format string, v ...any) {
56 if !utils.IsDebugEnabled() {
57 return
58 }
59 doPrint(ctx, fmt.Sprintf(format, v...), true)
60}
61
62// PrintFunc prints the output from function `f`.
63// It only calls function `f` if debug mode is enabled.

Callers 15

getEncodingFunction · 0.92
BeEncodeFunction · 0.92
LeEncodeFunction · 0.92
InstanceFunction · 0.92
GetFieldTypeMethod · 0.92
RowsToResultMethod · 0.92
buildDeleteConditionMethod · 0.92
getAutoValueMethod · 0.92
WatchMethod · 0.92
NotifyMethod · 0.92

Calls 2

IsDebugEnabledFunction · 0.92
doPrintFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…