MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / Fmt

Method Fmt

tools/mage/proto.go:287–289  ·  view source on GitHub ↗

Fmt formats and simplifies all proto files.

(ctx context.Context)

Source from the content-addressed store, hash-verified

285
286// Fmt formats and simplifies all proto files.
287func (p Proto) Fmt(ctx context.Context) error {
288 return runGoTool(append([]string{bufCLI, "format", "-w"}, "api")...)
289}
290
291// Lint lints all proto files.
292func (p Proto) Lint(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

runGoToolFunction · 0.85

Tested by

no test coverage detected