ability to delete mock sync groups

This commit is contained in:
2026-02-10 18:05:30 -07:00
parent 0944703d2a
commit 95ef64ce18
15 changed files with 963 additions and 13 deletions
+14
View File
@@ -17,6 +17,10 @@ func Int(dst *int) encoding.TextUnmarshaler {
return (*intText)(dst)
}
func Int64(dst *int64) encoding.TextUnmarshaler {
return (*int64Text)(dst)
}
func Platform(dst *accounts.Platform) encoding.TextUnmarshaler {
return (*platformText)(dst)
}
@@ -24,6 +28,7 @@ func Platform(dst *accounts.Platform) encoding.TextUnmarshaler {
type (
rawText string
intText int
int64Text int64
platformText accounts.Platform
)
@@ -41,6 +46,15 @@ func (n *intText) UnmarshalText(text []byte) error {
return nil
}
func (n *int64Text) UnmarshalText(text []byte) error {
i, err := strconv.ParseInt(string(text), 10, 64)
if err != nil {
return err
}
*n = int64Text(i)
return nil
}
func (p *platformText) UnmarshalText(text []byte) error {
v, err := accounts.NewPlatform(string(text))
if err != nil {