MCPcopy
hub / github.com/TarsCloud/TarsGo / errString

Function errString

tars/tools/tars2go/gencode/gen_go.go:54–64  ·  view source on GitHub ↗
(hasRet bool)

Source from the content-addressed store, hash-verified

52}
53
54func errString(hasRet bool) string {
55 var retStr string
56 if hasRet {
57 retStr = "return ret, err"
58 } else {
59 retStr = "return err"
60 }
61 return `if err != nil {
62 ` + retStr + `
63 }`
64}
65
66func genForHead(vc string) string {
67 i := `i` + vc

Callers 14

genWriteSimpleListMethod · 0.85
genWriteVectorMethod · 0.85
genWriteArrayMethod · 0.85
genWriteMapMethod · 0.85
genWriteStructMethod · 0.85
genWriteVarMethod · 0.85
genReadSimpleListMethod · 0.85
genReadVectorMethod · 0.85
genReadArrayMethod · 0.85
genReadMapMethod · 0.85
genReadStructMethod · 0.85
genReadVarMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected