MCPcopy Index your code
hub / github.com/coder/coder / Messagef

Function Messagef

coderd/healthcheck/health/model.go:107–112  ·  view source on GitHub ↗

Messagef is a convenience function for returning a health.Message

(code Code, msg string, args ...any)

Source from the content-addressed store, hash-verified

105
106// Messagef is a convenience function for returning a health.Message
107func Messagef(code Code, msg string, args ...any) Message {
108 return Message{
109 Code: code,
110 Message: fmt.Sprintf(msg, args...),
111 }
112}
113
114// Errorf is a convenience function for returning a stringly-typed version of a Message.
115func Errorf(code Code, msg string, args ...any) *string {

Callers 10

RunMethod · 0.92
RunMethod · 0.92
RunMethod · 0.92
RunMethod · 0.92
RunMethod · 0.92
RunMethod · 0.92
RunMethod · 0.92
generateInterfacesReportFunction · 0.92
TestConnDiagnosticsFunction · 0.92
ErrorfFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestConnDiagnosticsFunction · 0.74