SetOrderExtensions sets the order of the builder
(order dist.Order)
| 414 | |
| 415 | // SetOrderExtensions sets the order of the builder |
| 416 | func (b *Builder) SetOrderExtensions(order dist.Order) { |
| 417 | for i, entry := range order { |
| 418 | for j, ref := range entry.Group { |
| 419 | ref.Optional = false // ensure `optional = true` isn't redundantly printed for extensions (as they are always optional) |
| 420 | entry.Group[j] = ref |
| 421 | } |
| 422 | order[i] = entry |
| 423 | } |
| 424 | b.orderExtensions = order |
| 425 | b.replaceOrder = true |
| 426 | } |
| 427 | |
| 428 | // SetDescription sets the description of the builder |
| 429 | func (b *Builder) SetDescription(description string) { |
no outgoing calls