{"id":15452127,"url":"https://github.com/cryptix/gobotexample","last_synced_at":"2025-03-28T09:41:47.680Z","repository":{"id":136941459,"uuid":"202521329","full_name":"cryptix/gobotexample","owner":"cryptix","description":null,"archived":false,"fork":false,"pushed_at":"2019-08-20T08:03:18.000Z","size":2934,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T10:21:52.131Z","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/cryptix.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-15T10:25:07.000Z","updated_at":"2020-09-08T11:53:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"a60ca7b4-4bc6-485b-a1e3-eb40a8e34329","html_url":"https://github.com/cryptix/gobotexample","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"2ff6ddfd0d3f4d4bc8aaee99c38a30c85df36847"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptix%2Fgobotexample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptix%2Fgobotexample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptix%2Fgobotexample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptix%2Fgobotexample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptix","download_url":"https://codeload.github.com/cryptix/gobotexample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246009029,"owners_count":20708880,"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-10-01T21:41:20.374Z","updated_at":"2025-03-28T09:41:47.660Z","avatar_url":"https://github.com/cryptix.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gobotexample\n\nthis is a starting example to use the go-ssb \"ssb-server\" as a package.\n\n\n# gomobile\n\nThe [Mobile page on the golang wiki](https://github.com/golang/go/wiki/Mobile) is a good starting intro. Use the SDK instructions but change `golang.org/x/mobile/example/basic` with this package. Probably want to fork it first and then add all your stuff like passing configs from android and setting up storage locations and what not... If you fork it, replace `github.com/cryptix/gobotexample` with your own import path!\n\n## gomobile modules workaround\n\nthere is some weirdness with Go Modules and gomobile, you want to use `export GO111MODULE=off` for the foresable future to run the `gomobile bind ...` call.\n\nThe current checked in deps should work but here is how to update them:\n\n```bash\n# switch on module mode to update the `go.mod` file\nexport GO111MODULE=on\n\n# pull in your wanted version of a dep\ngo get go.cryptoscope.co/ssb@someNewStuffOrVersion\n\n# copy the dependencies into the `vendor/` folder\ngo mod vendor\n\n# switch of module module mode for the actual building\nexport GO111MODULE=off\n\n# compile all the dependencies\n# the output should include lines containing github.com/cryptix/gobotexample/vendor/.... (or what ever you changed the impport of this project to)\ngo build -v -i\n\n# run the (very basic) tests to see the bot starts and stops\ngo test\n\n# build the cross-compiled bindings\ngomobile bind -o app/gosbot.aar -target=android github.com/cryptix/gobotexample\n```\n\nAs a sanity check there is a simple start\u003esleep(1)\u003estop test (run `go test`) that you can use before running `gomobile ..` to see if the code compiles.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptix%2Fgobotexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptix%2Fgobotexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptix%2Fgobotexample/lists"}