mirror of
https://github.com/samuelncui/acp.git
synced 2026-01-03 10:05:16 +00:00
15 lines
227 B
Go
15 lines
227 B
Go
package acp
|
|
|
|
type deviceOption struct {
|
|
linear bool
|
|
}
|
|
|
|
type DeviceOption func(*deviceOption) *deviceOption
|
|
|
|
func LinearDevice(b bool) DeviceOption {
|
|
return func(d *deviceOption) *deviceOption {
|
|
d.linear = b
|
|
return d
|
|
}
|
|
}
|