More minor generated documentation improvements.

This commit is contained in:
John Beisley 2013-12-31 18:04:59 +00:00
parent 92b4aac9bb
commit d4355376d7
3 changed files with 522 additions and 303 deletions

View File

@ -15,13 +15,15 @@ import (
// Hack to avoid Go complaining if time isn't used.
var _ time.Time
// Device URNs:
const ({{range .DeviceTypes}}
{{.Const}} = "{{.URN}}"
{{end}})
{{.Const}} = "{{.URN}}"{{end}}
)
// Service URNs:
const ({{range .ServiceTypes}}
{{.Const}} = "{{.URN}}"
{{end}})
{{.Const}} = "{{.URN}}"{{end}}
)
{{range .Services}}
{{$srv := .}}
@ -38,11 +40,12 @@ type {{$srvIdent}} struct {
// {{.Name}} action.
//
// {{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 .}}
// * {{.Name}}: {{$argWrap.Document}}
//{{end}}{{end}}
//
// * {{.Name}}: {{$argWrap.Document}}{{end}}{{end}}
func (client *{{$srvIdent}}) {{.Name}}({{range $inargs}}{{/*
*/}}{{$argWrap := $srv.WrapArgument .}}{{$argWrap.AsParameter}}, {{end}}{{/*
*/}}) ({{range $outargs}}{{/*

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff