{"id":13572968,"url":"https://github.com/polywrap/go-client","last_synced_at":"2025-10-24T08:52:50.582Z","repository":{"id":63734757,"uuid":"560952525","full_name":"polywrap/go-client","owner":"polywrap","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-04T15:15:19.000Z","size":105,"stargazers_count":0,"open_issues_count":2,"forks_count":3,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-11-05T07:35:27.562Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/polywrap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-11-02T16:08:57.000Z","updated_at":"2022-11-25T17:52:37.000Z","dependencies_parsed_at":"2024-01-16T20:27:27.549Z","dependency_job_id":"3024cfc0-e955-4aea-a656-d36e1e4673c1","html_url":"https://github.com/polywrap/go-client","commit_stats":{"total_commits":14,"total_committers":4,"mean_commits":3.5,"dds":0.5714285714285714,"last_synced_commit":"f105b0937b2e9710a4fc800239e6071794a65b95"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polywrap%2Fgo-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polywrap%2Fgo-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polywrap%2Fgo-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polywrap%2Fgo-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polywrap","download_url":"https://codeload.github.com/polywrap/go-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240005384,"owners_count":19732743,"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":[],"created_at":"2024-08-01T15:00:25.483Z","updated_at":"2025-10-24T08:52:45.561Z","avatar_url":"https://github.com/polywrap.png","language":"Go","readme":"![Public Release Announcement](https://user-images.githubusercontent.com/5522128/177473887-2689cf25-7937-4620-8ca5-17620729a65d.png)\n\n\n# Polywrap Go client\n\n\u003e [Polywrap](https://polywrap.io) is a developer tool that enables easy integration of Web3 protocols into any application. It makes it possible for applications on any platform, written in any language, to read and write data to Web3 protocols.\n\n# Working Features\n\nThis Polywrap clients enable the execution of WebAssembly Polywrappers (or just “wrappers”) on various environments, regardless of what language this wrapper was built in.\n\nThe various clients are built following the functionality of the JavaScript Polywrap Client, which is currently more robust and battle tested, as it has additional capabilities than other MVPs. In the future, the Polywrap DAO will continue improving the various client’s capabilities to reach feature parity with the JS stack, improving the experience in parallel clients for other languages like Python, Go, and Rust.\n\nHere you can see which features have been implemented on each language, and make the decision of which one to use for your project.\n\n| Feature | [Python](https://github.com/polywrap/python-client) | [Javascript](https://github.com/polywrap/toolchain) |  [Go](https://github.com/polywrap/go-client) | [Rust](https://github.com/polywrap/rust-client) |\n| -- | -- | -- | -- | -- |\n| **Invoke**  | ✅ | ✅ | ✅ | ⚙️|\n| Subinvoke | ⚙️ | ✅ | ✅ |  |\n| Interfaces | ❌ | ✅ | ✅ | |\n| Env Configuration | ⚙️ | ✅ | ✅ | |\n| Client Config | ⚙️ | ✅ | ✅ | ⚙️|\n| Plugin Wrapper | ❌ | ✅ | | |\n| Wrap Manifest | ⚙️ | ✅ | | |\n| **Uri Resolution** | ⚙️ | ✅ | ✅ | ⚙️ |\n| Uri: Filesystem|✅|✅| ✅ |\n| Uri: IPFS |❌|✅| || |\n| Uri: ENS |❌|✅| | | |\n\n\u003e TODO: Update table above according to test harness and maybe mention other wip clients (rust, python)\n\n|status| |\n| -- | -- |\n|✅ | fully working|\n|⚙️| partially working|\n|❌|not yet implemented|\n\n## Prerequisites\n\n## Golang\n\nProceed to installation by following [these instructions](https://go.dev/doc/install).\n\nTo verify Go is installed run:\n```\ngo version\n```\nyour output in this case should be something like `go version go1.18.1 linux/amd64`.\n\n\n## Using Polywrap Go client\n\nExample of Golang app that uses [SimpleCalculator](https://github.com/polywrap/toolchain/tree/origin-dev/packages/test-cases/cases/wrappers/wasm-as/simple-calculator) wrapper\n\n```go\nwrapPath := \"wrap://fs/../wasm/cases/simple-calculator\"\npolywrapClient := client.New(\u0026client.ClientConfig{\n    Resolver: wasm.NewFsResolver(),\n})\nwrapUri, err := uri.New(wrapPath)\nif err != nil {\n    log.Fatalf(\"bad wrapUri: %s (%s)\", wrapPath, err)\n}\nres, err := client.Invoke[map[string]int32, int32, []byte](polywrapClient, *wrapUri, \"add\", map[string]int32{\n    \"a\": 5,\n    \"b\": 7,\n}, nil)\nif err != nil {\n    log.Fatalf(\"invokation error: %s\", err)\n}\n\nlog.Printf(\"Result is: %d\\n\", *res)\n```\n\nDetailed example can be found in [example](example) folder.\n\n## Development\n\n\n### Clone the repository\n```\ngit clone https://github.com/polywrap/go-client.git\n```\n\n# Test the client\n\nBy running this command in the root path, all written tests will be executed\n\n```\ngo test -v ./...\n```\n","funding_links":[],"categories":["Clients"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolywrap%2Fgo-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolywrap%2Fgo-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolywrap%2Fgo-client/lists"}