...

Text file src/github.com/okta/okta-sdk-golang/v2/openapi/generator/templates/struct/withProp.go.hbs

Documentation: github.com/okta/okta-sdk-golang/v2/openapi/generator/templates/struct

     1{{#each properties as |property|}}
     2	{{#unless readOnly}}
     3func (m *{{../modelName}}) With{{structProp propertyName}}(v {{getType this}}) *{{../modelName}} {
     4	m.{{structProp propertyName}} = v
     5	return m
     6}
     7	{{/unless}}
     8{{/each}}

View as plain text