1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package repository import "context" type ( Settings struct { ShowMode bool ShowOwner bool PreloadVideoMetadata bool } SettingsRepository interface { Save(context.Context, *Settings) error Load(context.Context) (*Settings, error) } )