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

Function outputGo

tools/mage/go.go:71–77  ·  view source on GitHub ↗
(cmd string, args ...string)

Source from the content-addressed store, hash-verified

69}
70
71func outputGo(cmd string, args ...string) (string, error) {
72 var buf bytes.Buffer
73 if err := execGo(&buf, os.Stderr, cmd, args...); err != nil {
74 return "", err
75 }
76 return buf.String(), nil
77}
78
79func outputJSONGo(cmd string, args ...string) ([]byte, error) {
80 var buf bytes.Buffer

Callers 3

CheckVersionMethod · 0.85
packageDirsMethod · 0.85
TestBinariesMethod · 0.85

Calls 2

execGoFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected