MCPcopy Create free account
hub / github.com/corestoreio/pkg / PrepareForTemplate

Function PrepareForTemplate

_codegen/database.go:419–478  ·  view source on GitHub ↗

PrepareForTemplate uses the Columns slice to transform the rows so that correct Go code can be printed. int/Float values won't be touched. Bools or IntBools will be converted to true/false. Strings will be quoted. And if there is an entry in the AttributeModelMap then the Go code from the map will b

(cols Columns, rows []StringEntities, amm AttributeModelDefMap, targetPkg string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 5

validImportPathFunction · 0.85
FuncMethod · 0.80
ImportMethod · 0.80
IsBoolMethod · 0.80
IsFloatMethod · 0.80

Tested by 1