WithRoles variadic args (#1395)

Co-authored-by: Ben Toogood <ben@micro.mu>
This commit is contained in:
ben-toogood
2020-03-24 10:18:34 +00:00
committed by GitHub
parent c1978265ab
commit 86272a3064
6 changed files with 9 additions and 9 deletions

View File

@@ -85,7 +85,7 @@ func WithMetadata(md map[string]string) GenerateOption {
}
// WithRoles for the generated account
func WithRoles(rs []string) GenerateOption {
func WithRoles(rs ...string) GenerateOption {
return func(o *GenerateOptions) {
o.Roles = rs
}