More minor generated documentation improvements.
This commit is contained in:
parent
92b4aac9bb
commit
d4355376d7
@ -15,13 +15,15 @@ import (
|
|||||||
// Hack to avoid Go complaining if time isn't used.
|
// Hack to avoid Go complaining if time isn't used.
|
||||||
var _ time.Time
|
var _ time.Time
|
||||||
|
|
||||||
|
// Device URNs:
|
||||||
const ({{range .DeviceTypes}}
|
const ({{range .DeviceTypes}}
|
||||||
{{.Const}} = "{{.URN}}"
|
{{.Const}} = "{{.URN}}"{{end}}
|
||||||
{{end}})
|
)
|
||||||
|
|
||||||
|
// Service URNs:
|
||||||
const ({{range .ServiceTypes}}
|
const ({{range .ServiceTypes}}
|
||||||
{{.Const}} = "{{.URN}}"
|
{{.Const}} = "{{.URN}}"{{end}}
|
||||||
{{end}})
|
)
|
||||||
|
|
||||||
{{range .Services}}
|
{{range .Services}}
|
||||||
{{$srv := .}}
|
{{$srv := .}}
|
||||||
@ -38,11 +40,12 @@ type {{$srvIdent}} struct {
|
|||||||
// {{.Name}} action.
|
// {{.Name}} action.
|
||||||
//
|
//
|
||||||
// {{if $inargs}}Arguments:{{range $inargs}}{{$argWrap := $srv.WrapArgument .}}
|
// {{if $inargs}}Arguments:{{range $inargs}}{{$argWrap := $srv.WrapArgument .}}
|
||||||
// * {{.Name}}: {{$argWrap.Document}}
|
//
|
||||||
//{{end}}{{end}}
|
// * {{.Name}}: {{$argWrap.Document}}{{end}}{{end}}
|
||||||
|
//
|
||||||
// {{if $outargs}}Return values:{{range $outargs}}{{$argWrap := $srv.WrapArgument .}}
|
// {{if $outargs}}Return values:{{range $outargs}}{{$argWrap := $srv.WrapArgument .}}
|
||||||
// * {{.Name}}: {{$argWrap.Document}}
|
//
|
||||||
//{{end}}{{end}}
|
// * {{.Name}}: {{$argWrap.Document}}{{end}}{{end}}
|
||||||
func (client *{{$srvIdent}}) {{.Name}}({{range $inargs}}{{/*
|
func (client *{{$srvIdent}}) {{.Name}}({{range $inargs}}{{/*
|
||||||
*/}}{{$argWrap := $srv.WrapArgument .}}{{$argWrap.AsParameter}}, {{end}}{{/*
|
*/}}{{$argWrap := $srv.WrapArgument .}}{{$argWrap.AsParameter}}, {{end}}{{/*
|
||||||
*/}}) ({{range $outargs}}{{/*
|
*/}}) ({{range $outargs}}{{/*
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user