github.com/yaegashi/msgraph.go@v0.1.4/gen/templates/action.go.tmpl (about)

     1  {{- $ := . }}
     2  {{- $x := .X }}
     3  {{- $xSymBindingType := $.SymFromType $x.BindingParameterType }}
     4  // {{$xSymBindingType}}{{$x.Sym}}RequestParameter {{$x.Description}}
     5  type {{$xSymBindingType}}{{$x.Sym}}RequestParameter struct {
     6  {{- range $y := .X.Parameters }}
     7  {{- $yTypeType := $.TypeFromType $y.Type }}
     8      // {{$y.Sym}} {{$y.Description}}
     9      {{$y.Sym}} {{$yTypeType}} `json:"{{$y.Name}},omitempty"`
    10  {{- end }}
    11  }