MCPcopy Create free account
hub / github.com/go-dev-frame/sponge / getCode

Method getCode

pkg/sql2code/parser/tableInfo.go:80–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78}
79
80func (table TableInfo) getCode() []byte {
81 code, err := json.Marshal(&table)
82 if err != nil {
83 fmt.Printf("table: %v, json.Marshal error: %v\n", table.TableName, err)
84 }
85 return code
86}
87
88func getColumns(dbDriver string, fields []tmplField) []Field {
89 var columns []Field

Callers 2

TestCrudInfoFunction · 0.45
makeCodeFunction · 0.45

Calls 2

PrintfMethod · 0.80
MarshalMethod · 0.65

Tested by 1

TestCrudInfoFunction · 0.36