model: native gotemplate adapter template
This commit is contained in:
parent
ee4979e510
commit
8299bf76ed
1 changed files with 4 additions and 3 deletions
|
@ -955,11 +955,12 @@ TEMPLATE """{{ .Template }}"""
|
|||
{{- if .System }}
|
||||
SYSTEM """{{ .System }}"""
|
||||
{{- end }}
|
||||
|
||||
{{- range $adapter := .AdapterPaths }}
|
||||
ADAPTER {{ $adapter }}
|
||||
{{- end }}
|
||||
{{ .Params }}
|
||||
`
|
||||
for _, l := range mt.Model.AdapterPaths {
|
||||
modelFile += fmt.Sprintf("ADAPTER %s\n", l)
|
||||
}
|
||||
|
||||
tmpl, err := template.New("").Parse(modelFile)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue