{"id":13413161,"url":"https://github.com/hypebeast/go-osc","last_synced_at":"2025-03-14T19:31:36.222Z","repository":{"id":10268324,"uuid":"12380893","full_name":"hypebeast/go-osc","owner":"hypebeast","description":"Open Sound Control (OSC) library for Golang. Implemented in pure Go.","archived":false,"fork":false,"pushed_at":"2023-01-15T23:19:26.000Z","size":219,"stargazers_count":197,"open_issues_count":16,"forks_count":46,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-07-31T20:51:57.624Z","etag":null,"topics":["go","golang","golang-library","opensoundcontrol","osc"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hypebeast.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-26T14:10:42.000Z","updated_at":"2024-07-28T18:01:43.000Z","dependencies_parsed_at":"2023-01-16T21:46:05.860Z","dependency_job_id":null,"html_url":"https://github.com/hypebeast/go-osc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypebeast%2Fgo-osc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypebeast%2Fgo-osc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypebeast%2Fgo-osc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypebeast%2Fgo-osc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hypebeast","download_url":"https://codeload.github.com/hypebeast/go-osc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221498723,"owners_count":16833053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","golang-library","opensoundcontrol","osc"],"created_at":"2024-07-30T20:01:34.314Z","updated_at":"2024-10-26T05:30:26.770Z","avatar_url":"https://github.com/hypebeast.png","language":"Go","funding_links":[],"categories":["Go","硬件","Hardware","Relational Databases"],"sub_categories":["检索及分析资料库","Search and Analytic Databases","Tutorials","Advanced Console UIs"],"readme":"# GoOSC\n\n![Build](https://github.com/hypebeast/go-osc/actions/workflows/test.yml/badge.svg) [![GoDoc](https://godoc.org/github.com/hypebeast/go-osc/osc?status.svg)](https://godoc.org/github.com/hypebeast/go-osc/osc) [![Coverage Status](https://coveralls.io/repos/github/hypebeast/go-osc/badge.svg?branch=master)](https://coveralls.io/github/hypebeast/go-osc?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/hypebeast/go-osc)](https://goreportcard.com/report/github.com/hypebeast/go-osc)\n\n[Open Sound Control (OSC)](http://opensoundcontrol.org) library for Golang. Implemented in pure Go.\n\n## Features\n\n-   OSC Bundles, including timetags\n-   OSC Messages\n-   OSC Client\n-   OSC Server\n-   Supports the following OSC argument types:\n    -   'i' (Int32)\n    -   'f' (Float32)\n    -   's' (string)\n    -   'b' (blob / binary data)\n    -   'h' (Int64)\n    -   't' (OSC timetag)\n    -   'd' (Double/int64)\n    -   'T' (True)\n    -   'F' (False)\n    -   'N' (Nil)\n-   Support for OSC address pattern including '\\*', '?', '{,}' and '[]' wildcards\n\n## Install\n\n```shell\ngo get github.com/hypebeast/go-osc\n```\n\n## Usage\n\n### Client\n\n```go\nimport \"github.com/hypebeast/go-osc/osc\"\n\nfunc main() {\n    client := osc.NewClient(\"localhost\", 8765)\n    msg := osc.NewMessage(\"/osc/address\")\n    msg.Append(int32(111))\n    msg.Append(true)\n    msg.Append(\"hello\")\n    client.Send(msg)\n}\n```\n\n### Server\n\n```go\npackage main\n\nimport \"github.com/hypebeast/go-osc/osc\"\n\nfunc main() {\n    addr := \"127.0.0.1:8765\"\n    d := osc.NewStandardDispatcher()\n    d.AddMsgHandler(\"/message/address\", func(msg *osc.Message) {\n        osc.PrintMessage(msg)\n    })\n\n    server := \u0026osc.Server{\n        Addr: addr,\n        Dispatcher:d,\n    }\n    server.ListenAndServe()\n}\n```\n\n## Tests\n\n```shell\nmake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypebeast%2Fgo-osc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypebeast%2Fgo-osc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypebeast%2Fgo-osc/lists"}