Change execute interface to use IP/Port pair

This commit is contained in:
Erik
2023-04-25 14:55:57 +02:00
parent a7ae121750
commit 738432f0df
4 changed files with 14 additions and 13 deletions

View File

@ -14,7 +14,7 @@ func main() {
uuid := uuid.MustParse("87e79cbc-6df6-4462-8412-85d6c473e3b1")
m := pcsdk.NewCommandCreate(5555, 8080, ip, state.CustomUUID(uuid))
err := m.Execute("http://localhost:3000")
err := m.Execute(netip.MustParseAddrPort("127.0.0.1:3000"))
if err != nil {
fmt.Printf("error executing create command: %s\n", err)
} else {