mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-04-09 02:13:35 +00:00
litn fixes
This commit is contained in:
@@ -4,7 +4,7 @@ import "time"
|
||||
|
||||
type EngineOption func(*engine)
|
||||
|
||||
// WithTimeout sets the timeout duration for OSC message responses
|
||||
// WithTimeout sets the timeout duration for OSC message responses.
|
||||
func WithTimeout(timeout time.Duration) EngineOption {
|
||||
return func(e *engine) {
|
||||
e.timeout = timeout
|
||||
@@ -13,7 +13,7 @@ func WithTimeout(timeout time.Duration) EngineOption {
|
||||
|
||||
type CompOption func(*Comp)
|
||||
|
||||
// WithCompAddressFunc allows customization of the OSC address formatting for Comp parameters
|
||||
// WithCompAddressFunc allows customization of the OSC address formatting for Comp parameters.
|
||||
func WithCompAddressFunc(f func(fmtString string, args ...any) string) CompOption {
|
||||
return func(c *Comp) {
|
||||
c.AddressFunc = f
|
||||
@@ -22,7 +22,7 @@ func WithCompAddressFunc(f func(fmtString string, args ...any) string) CompOptio
|
||||
|
||||
type EqOption func(*Eq)
|
||||
|
||||
// WithEqAddressFunc allows customization of the OSC address formatting for Eq parameters
|
||||
// WithEqAddressFunc allows customization of the OSC address formatting for Eq parameters.
|
||||
func WithEqAddressFunc(f func(fmtString string, args ...any) string) EqOption {
|
||||
return func(e *Eq) {
|
||||
e.AddressFunc = f
|
||||
@@ -31,7 +31,7 @@ func WithEqAddressFunc(f func(fmtString string, args ...any) string) EqOption {
|
||||
|
||||
type GateOption func(*Gate)
|
||||
|
||||
// WithGateAddressFunc allows customization of the OSC address formatting for Gate parameters
|
||||
// WithGateAddressFunc allows customization of the OSC address formatting for Gate parameters.
|
||||
func WithGateAddressFunc(f func(fmtString string, args ...any) string) GateOption {
|
||||
return func(g *Gate) {
|
||||
g.AddressFunc = f
|
||||
|
||||
Reference in New Issue
Block a user