MCPcopy
hub / github.com/grafana/dskit / LazySprintf

Function LazySprintf

log/gokit.go:64–69  ·  view source on GitHub ↗
(format string, args ...interface{})

Source from the content-addressed store, hash-verified

62}
63
64func LazySprintf(format string, args ...interface{}) *Sprintf {
65 return &Sprintf{
66 format: format,
67 args: args,
68 }
69}
70
71func (s *Sprintf) String() string {
72 return fmt.Sprintf(s.format, s.args...)

Callers 3

WrapMethod · 0.92
BenchmarkLazySprintfFunction · 0.85

Calls

no outgoing calls

Tested by 2

BenchmarkLazySprintfFunction · 0.68