@@ -16,16 +16,16 @@ var (
1616
1717func init () {
1818 tmplFuncs := template.FuncMap {
19- "toLower" : strings .ToLower ,
20- "requiredFields" : requiredFields ,
21- "beginString" : beginString ,
22- "routerBeginString" : routerBeginString ,
23- "importRootPath" : getImportPathRoot ,
24- "quickfixType" : quickfixType ,
25- "quickfixValueType" : quickfixValueType ,
26- "getGlobalFieldType" : getGlobalFieldType ,
27- "collectExtraImports" : collectExtraImports ,
28- "useFloatType " : useFloatType ,
19+ "toLower" : strings .ToLower ,
20+ "requiredFields" : requiredFields ,
21+ "beginString" : beginString ,
22+ "routerBeginString" : routerBeginString ,
23+ "importRootPath" : getImportPathRoot ,
24+ "quickfixType" : quickfixType ,
25+ "quickfixValueType" : quickfixValueType ,
26+ "getGlobalFieldType" : getGlobalFieldType ,
27+ "collectExtraImports" : collectExtraImports ,
28+ "checkIfDecimalImportRequiredForFields " : checkIfDecimalImportRequiredForFields ,
2929 }
3030
3131 baseTemplate := template .Must (template .New ("Base" ).Funcs (tmplFuncs ).Parse (`
@@ -284,7 +284,7 @@ package field
284284import(
285285 "github.com/quickfixgo/quickfix"
286286 "{{ importRootPath }}/tag"
287- {{ if eq useFloatType false }} "github.com/shopspring/decimal" {{ end }}
287+ {{ if checkIfDecimalImportRequiredForFields . }} "github.com/shopspring/decimal" {{ end }}
288288 "time"
289289)
290290
0 commit comments