MCPcopy
hub / github.com/inbug-team/InScan / CheckError

Function CheckError

generate_exec/generate_exec.go:29–33  ·  view source on GitHub ↗

* 1.将参数序列化成字符串 2.将字符串加密 3.获取模板文件长度 4.将模板文件字节存入可执行程序 5.将加密字符串追加到可执行程序末尾 6.将模板文件长度转化为4字节存到末尾 */

(err error)

Source from the content-addressed store, hash-verified

27*/
28
29func CheckError(err error) {
30 if err != nil {
31 panic(err)
32 }
33}
34
35func IntToBytes(i int) []byte {
36 buf := make([]byte, 4)

Callers 3

mainFunction · 0.92
GetExecPathFunction · 0.85
AppendExecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected