{"id":18560714,"url":"https://github.com/cdfn/rangomorg","last_synced_at":"2025-05-15T16:34:00.854Z","repository":{"id":57528837,"uuid":"256188795","full_name":"CDFN/rangomorg","owner":"CDFN","description":"Rangom is random.org wrapper for Go. Currently it contains only signed api.","archived":false,"fork":false,"pushed_at":"2020-04-18T08:44:39.000Z","size":11,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T12:29:37.530Z","etag":null,"topics":["go","golang-module","randomorg"],"latest_commit_sha":null,"homepage":"","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/CDFN.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}},"created_at":"2020-04-16T10:59:36.000Z","updated_at":"2022-02-14T14:23:14.000Z","dependencies_parsed_at":"2022-09-10T17:10:46.375Z","dependency_job_id":null,"html_url":"https://github.com/CDFN/rangomorg","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/CDFN%2Frangomorg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CDFN%2Frangomorg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CDFN%2Frangomorg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CDFN%2Frangomorg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CDFN","download_url":"https://codeload.github.com/CDFN/rangomorg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254377606,"owners_count":22061182,"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-module","randomorg"],"created_at":"2024-11-06T22:04:14.343Z","updated_at":"2025-05-15T16:34:00.835Z","avatar_url":"https://github.com/CDFN.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RangomOrg\n\nRangomOrg is wrapper for random.org API. It's very simple to use!\u003cbr\u003e\nDependencies:\nName    | URL\n--------|-------\njsonrpc | github.com/ybbus/jsonrpc\n\nUsage:\n```Go\npackage main\n\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"github.com/CDFN/rangomorg\"\n\t\"log\"\n)\n\nconst (\n\trandomApiKey = \"your-api-key\"\n)\n\nfunc main() {\n\trandom := rangomorg.New(randomApiKey)\n\tresult, err := random.GenerateSignedStrings(5, 10, \"rangom\", map[string]interface{}{\n\t\t\"userData\": \"YourUserData\", // These options are optional\n\t\t\"replacement\": true,        // see https://api.random.org/json-rpc/2 for more\n\t})\n\tif err != nil {\n\t\tlog.Fatal(err.Error())\n\t}\n\tjsonBytes, _ := json.MarshalIndent(result, \"\", \"    \")\n\tfmt.Println(\"Random: \")\n\tfmt.Println(string(jsonBytes))                      // Display result in json form\n\tfmt.Println(\"Requested data: \", result.Random.Data) // Display requested data\n\tfmt.Println(\"Signature: \", result.Signature)        // In case of signed api, display signature\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdfn%2Frangomorg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdfn%2Frangomorg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdfn%2Frangomorg/lists"}