SimpleNumberParams converts given number parameters to their corresponding simple parameters.
(params NumberParams)
| 125 | |
| 126 | // SimpleNumberParams converts given number parameters to their corresponding simple parameters. |
| 127 | func SimpleNumberParams(params NumberParams) SimpleParams { |
| 128 | return SimpleParams{ |
| 129 | caseExact: false, |
| 130 | description: params.Description, |
| 131 | multiValued: params.MultiValued, |
| 132 | mutability: params.Mutability.m, |
| 133 | name: params.Name, |
| 134 | required: params.Required, |
| 135 | returned: params.Returned.r, |
| 136 | typ: params.Type.t, |
| 137 | uniqueness: params.Uniqueness.u, |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | // SimpleReferenceParams converts given reference parameters to their corresponding simple parameters. |
| 142 | func SimpleReferenceParams(params ReferenceParams) SimpleParams { |
no outgoing calls
searching dependent graphs…