{"id":13523564,"url":"https://github.com/openos-labs/IC-Go","last_synced_at":"2025-04-01T00:32:05.508Z","repository":{"id":47388644,"uuid":"445551119","full_name":"openos-labs/IC-Go","owner":"openos-labs","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-26T10:27:18.000Z","size":183,"stargazers_count":21,"open_issues_count":4,"forks_count":4,"subscribers_count":3,"default_branch":"v0.0.1","last_synced_at":"2024-05-22T19:14:09.110Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openos-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-01-07T14:37:24.000Z","updated_at":"2023-10-24T22:41:37.000Z","dependencies_parsed_at":"2023-09-05T03:24:14.127Z","dependency_job_id":"d35fc64e-3e02-436e-ab2e-ec3ede4fec05","html_url":"https://github.com/openos-labs/IC-Go","commit_stats":null,"previous_names":["openos-labs/ic-go","mix-labs/ic-go"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openos-labs%2FIC-Go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openos-labs%2FIC-Go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openos-labs%2FIC-Go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openos-labs%2FIC-Go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openos-labs","download_url":"https://codeload.github.com/openos-labs/IC-Go/tar.gz/refs/heads/v0.0.1","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222688174,"owners_count":17023297,"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-01T06:01:01.321Z","updated_at":"2024-11-02T07:31:50.830Z","avatar_url":"https://github.com/openos-labs.png","language":"Go","funding_links":[],"categories":["Client Libraries (Agents)"],"sub_categories":["Go"],"readme":"# IC-Go: Go Agent for the Internet Computer\n\nHere is the beta version of go agent for IC\n\nPlease send us the issues you found, thanks!\n\nYou can find the examples to use IC-Go in agent_test.go\n\nThe implementations of IDL and principal are borrowed from [candid-go](https://github.com/aviate-labs/candid-go) and [principal](https://github.com/aviate-labs/principal-go), and fix the bugs\n\n**[update 2022.3.6]** fix the bugs for the recursive structs during decode, (like a struct A with a field which is a vec of A)\n\n**[update 2022.1.24]** add the auto-decoder to decode the result to the data structure in Golang automatically, see utils/decode.go\n\n\tTips for the auto-decoder:\n\n    - Due to the limitation of member variable name in Golang, you should put the label for member variable in the tag of `ic:\"**\"`\n\n\t- You are supposed to define Enum class as a struct. The extra member variant with tag `ic:\"EnumIndex\"`, whose value is set as the final result's tag, is used to formulate the enumeration in such a \"enum\" struct   \n\t\n\t- \"Option\" should be defined as a struct, and the tag of the member variants in such a struct are \"none\" and \"some\", the member variant with tag \"none\" is initialized as 0, and once the option is nil, it will be set to 1  \n\t\n\t- \"Tuple\" is also defined as a struct, the tag for the first member in tuple should be `ic:\"0\"`, and so on.\n\n    - \"Nat\" is also supposed to be defined as big.Int \n  \n    - The type of members in record or enum without type of value in motoko should be set as a *uint8. The tag of members in record or enum without name in motoko should be set as `ic:\"0\"`, `ic:\"1\"` and so on.\n\t\n\t- See more details in utils/decode.go and agent_test.go\n\n    \n\n\n**[update 2022.1.14]** add the new function of agent from pem file and show an example to decode the result to the data structure in Golang","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenos-labs%2FIC-Go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenos-labs%2FIC-Go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenos-labs%2FIC-Go/lists"}