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. // 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