values is a convenience method for creating []reflect.Value. values(workspace, template, ...) is equivalent to []reflect.Value{ reflect.ValueOf(workspace), reflect.ValueOf(template), ... }
(ins ...any)
| 526 | // ... |
| 527 | // } |
| 528 | func values(ins ...any) []reflect.Value { |
| 529 | out := make([]reflect.Value, 0) |
| 530 | for _, input := range ins { |
| 531 | out = append(out, reflect.ValueOf(input)) |
| 532 | } |
| 533 | return out |
| 534 | } |
| 535 | |
| 536 | // asserts is a convenience method for creating AssertRBACs. |
| 537 | // |