-
Notifications
You must be signed in to change notification settings - Fork 5
/
extra.xo.go
52 lines (44 loc) · 1.47 KB
/
extra.xo.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package db
// Code generated by xo. DO NOT EDIT.
import (
"fmt"
)
func newPointer[T any](v T) *T {
return &v
}
type XoError struct {
Entity string
Err error
}
// Error satisfies the error interface.
func (e *XoError) Error() string {
return fmt.Sprintf("%s %v", e.Entity, e.Err)
}
// Unwrap satisfies the unwrap interface.
func (err *XoError) Unwrap() error {
return err.Err
}
type Entity string
const (
ActivityEntity Entity = "Activity"
DemoTwoWorkItemEntity Entity = "DemoTwoWorkItem"
DemoWorkItemEntity Entity = "DemoWorkItem"
EntityNotificationEntity Entity = "EntityNotification"
KanbanStepEntity Entity = "KanbanStep"
MovieEntity Entity = "Movie"
NotificationEntity Entity = "Notification"
ProjectEntity Entity = "Project"
SchemaMigrationEntity Entity = "SchemaMigration"
TeamEntity Entity = "Team"
TimeEntryEntity Entity = "TimeEntry"
UserEntity Entity = "User"
UserAPIKeyEntity Entity = "UserAPIKey"
UserNotificationEntity Entity = "UserNotification"
UserTeamEntity Entity = "UserTeam"
WorkItemEntity Entity = "WorkItem"
WorkItemAssignedUserEntity Entity = "WorkItemAssignedUser"
WorkItemCommentEntity Entity = "WorkItemComment"
WorkItemTagEntity Entity = "WorkItemTag"
WorkItemTypeEntity Entity = "WorkItemType"
WorkItemWorkItemTagEntity Entity = "WorkItemWorkItemTag"
)