Update constants as enums to reflect GA design (#4750)
* Update constants as enums to reflect GA design * revise
This commit is contained in:
Родитель
16f6fc134f
Коммит
2c8747a7df
|
@ -72,8 +72,6 @@ TODO
|
|||
|
||||
{% include requirement/MUST id="golang-enum-type-values" %} define a function named `<EnumTypeName>Values()` that returns a slice containing all possible values for the enumeration.
|
||||
|
||||
{% include requirement/MUST id="golang-enum-type-values" %} define a method named `ToPtr()` on the enumerated type that returns a pointer to the enum value.
|
||||
|
||||
```go
|
||||
// WidgetColor specifies a Widget's color from the list of possible values.
|
||||
type WidgetColor string
|
||||
|
|
Загрузка…
Ссылка в новой задаче