Alias associates a name with a user-defined alias. In general, Abbrevs is preferred to Alias since the names generated from the Abbrevs option are more easily traced back to source code. The Alias option is useful for propagating alias configuration from one Container instance to another, and may a
(qualifiedName, alias string)
| 243 | // configuration from one Container instance to another, and may also be useful for remapping |
| 244 | // poorly chosen protobuf message / package names. |
| 245 | func Alias(qualifiedName, alias string) ContainerOption { |
| 246 | return aliasAs("alias", qualifiedName, alias, false) |
| 247 | } |
| 248 | |
| 249 | func aliasAs(kind, qualifiedName, alias string, requireQualified bool) ContainerOption { |
| 250 | return func(c *Container) (*Container, error) { |