"vscode:/vscode.git/clone" did not exist on "b80447707c5e79c45e0106ff51ab57dfe2afa405"
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 }}"""
{{- 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 {
......
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