/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/microsoftgraph/msgraph-sdk-go/models/week_index.go
45 строк
1 KB
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 WeekIndex int const ( FIRST_WEEKINDEX WeekIndex = iota SECOND_WEEKINDEX THIRD_WEEKINDEX FOURTH_WEEKINDEX LAST_WEEKINDEX ) func (i WeekIndex) String() string { return []string{"first", "second", "third", "fourth", "last"}[i] } func ParseWeekIndex(v string) (any, error) { result := FIRST_WEEKINDEX switch v { case "first": result = FIRST_WEEKINDEX case "second": result = SECOND_WEEKINDEX case "third": result = THIRD_WEEKINDEX case "fourth": result = FOURTH_WEEKINDEX case "last": result = LAST_WEEKINDEX default: return nil, nil } return &result, nil } func SerializeWeekIndex(values []WeekIndex) []string { result := make([]string, len(values)) for i, v := range values { result[i] = v.String() } return result } func (i WeekIndex) isMultiValue() bool { return false }