MCPcopy Create free account
hub / github.com/Kong/httpsnippet / errorCheck

Function errorCheck

src/targets/go/native/client.ts:45–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 const indent = showBoilerplate ? 1 : 0;
44
45 const errorCheck = () => {
46 if (checkErrors) {
47 push('if err != nil {', indent);
48 push('panic(err)', indent + 1);
49 push('}', indent);
50 }
51 };
52
53 // Create boilerplate
54 if (showBoilerplate) {

Callers 1

client.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…