mirror of
https://github.com/jwetzell/osc-go.git
synced 2026-09-10 15:59:28 +00:00
add osc true and false types
This commit is contained in:
@@ -78,6 +78,10 @@ func argToTypedArg(rawArg string, oscType string) any {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
return float64(number)
|
return float64(number)
|
||||||
|
case "T":
|
||||||
|
return true
|
||||||
|
case "F":
|
||||||
|
return false
|
||||||
default:
|
default:
|
||||||
fmt.Print("unhandled osc type: ")
|
fmt.Print("unhandled osc type: ")
|
||||||
fmt.Printf("%s.\n", oscType)
|
fmt.Printf("%s.\n", oscType)
|
||||||
|
|||||||
Reference in New Issue
Block a user