Use manifest package name in generated code.
This commit is contained in:
parent
89dd64b3ce
commit
5a32790ea4
@ -140,6 +140,7 @@ func processService(
|
|||||||
}
|
}
|
||||||
|
|
||||||
err = tmpl.ExecuteTemplate(os.Stdout, "service", tmplArgs{
|
err = tmpl.ExecuteTemplate(os.Stdout, "service", tmplArgs{
|
||||||
|
Manifest: srvManifest,
|
||||||
Imps: imps,
|
Imps: imps,
|
||||||
SCPD: sd,
|
SCPD: sd,
|
||||||
})
|
})
|
||||||
@ -169,6 +170,7 @@ type ServiceManifest struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type tmplArgs struct {
|
type tmplArgs struct {
|
||||||
|
Manifest *ServiceManifest
|
||||||
Imps *imports
|
Imps *imports
|
||||||
SCPD *srvdesc.SCPD
|
SCPD *srvdesc.SCPD
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{{define "service"}}
|
{{define "service"}}
|
||||||
{{- $Imps := .Imps}}
|
{{- $Imps := .Imps}}
|
||||||
package TODO
|
package {{.Manifest.Package}}
|
||||||
|
|
||||||
import (
|
import (
|
||||||
{{- range .Imps.ImportLines}}
|
{{- range .Imps.ImportLines}}
|
||||||
|
Loading…
Reference in New Issue
Block a user