//go:build !windows package webcam import ( "errors" "tea.chunkbyte.com/kato/go-worm/lib/models" ) var ErrDeviceNotFound = errors.New("webcam not found") type Device struct { Index int `json:"index"` Name string `json:"name"` Version string `json:"version,omitempty"` } func List() ([]Device, error) { return nil, errors.New("webcam is only available on Windows") } func Capture(index int, format string, quality int) (models.CapturedImage, error) { return models.CapturedImage{}, errors.New("webcam is only available on Windows") }