/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/microsoftgraph/msgraph-sdk-go/models/importance.go
39 строк
943 B
Justin Pierce
Add compat_otp package with openshift-tests-private (OTP) util implementations
11 авг 2025, 18:00
11 авг 2025, 18:00
80ac5c1
Код
Авторство
О чём код?
// Code generated by Microsoft Kiota - DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package models type Importance int const ( LOW_IMPORTANCE Importance = iota NORMAL_IMPORTANCE HIGH_IMPORTANCE ) func (i Importance) String() string { return []string{"low", "normal", "high"}[i] } func ParseImportance(v string) (any, error) { result := LOW_IMPORTANCE switch v { case "low": result = LOW_IMPORTANCE case "normal": result = NORMAL_IMPORTANCE case "high": result = HIGH_IMPORTANCE default: return nil, nil } return &result, nil } func SerializeImportance(values []Importance) []string { result := make([]string, len(values)) for i, v := range values { result[i] = v.String() } return result } func (i Importance) isMultiValue() bool { return false }