()
| 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) { |
no outgoing calls
no test coverage detected
searching dependent graphs…