Commit 8299bf76 authored by Michael Yang's avatar Michael Yang
Browse files

model: native gotemplate adapter template

parent ee4979e5
...@@ -955,11 +955,12 @@ TEMPLATE """{{ .Template }}""" ...@@ -955,11 +955,12 @@ TEMPLATE """{{ .Template }}"""
{{- if .System }} {{- if .System }}
SYSTEM """{{ .System }}""" SYSTEM """{{ .System }}"""
{{- end }} {{- end }}
{{- range $adapter := .AdapterPaths }}
ADAPTER {{ $adapter }}
{{- end }}
{{ .Params }} {{ .Params }}
` `
for _, l := range mt.Model.AdapterPaths {
modelFile += fmt.Sprintf("ADAPTER %s\n", l)
}
tmpl, err := template.New("").Parse(modelFile) tmpl, err := template.New("").Parse(modelFile)
if err != nil { if err != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment