chore: go fix

This commit is contained in:
Joel Wetzell
2026-05-09 13:44:28 -05:00
parent 216f84a2d9
commit a86a9b3121
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ func send(host string, port int32, address string, args []string, types []string
oscMessageBuffer = append(sizeBytes, oscMessageBuffer...)
}
netAddress := fmt.Sprintf("%s:%d", host, port)
netAddress := net.JoinHostPort(host, fmt.Sprintf("%d", port))
conn, err := net.Dial(protocol, netAddress)
if err != nil {
fmt.Printf("Dial err %v", err)
+2 -2
View File
@@ -17,7 +17,7 @@ func stringToOSCBytes(rawString string) []byte {
padLength := 4 - (len(sb.String()) % 4)
if padLength < 4 {
for i := 0; i < padLength; i++ {
for range padLength {
sb.WriteString("\u0000")
}
}
@@ -69,7 +69,7 @@ func byteArrayToOSCBytes(bytes []byte) []byte {
padLength := 4 - (bytesSize % 4)
if padLength < 4 {
for i := 0; i < padLength; i++ {
for range padLength {
oscBytes = append(oscBytes, 0)
}
}