{"id":16071078,"url":"https://github.com/fdv/crappy-go-elasticsearch-pkg","last_synced_at":"2025-11-17T14:35:00.684Z","repository":{"id":66531025,"uuid":"188534947","full_name":"fdv/crappy-go-elasticsearch-pkg","owner":"fdv","description":"Some ugly code","archived":false,"fork":false,"pushed_at":"2019-05-26T07:54:11.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-31T06:52:21.879Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fdv.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-25T07:29:19.000Z","updated_at":"2019-05-26T07:54:13.000Z","dependencies_parsed_at":"2023-05-18T18:45:42.895Z","dependency_job_id":null,"html_url":"https://github.com/fdv/crappy-go-elasticsearch-pkg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fdv/crappy-go-elasticsearch-pkg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdv%2Fcrappy-go-elasticsearch-pkg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdv%2Fcrappy-go-elasticsearch-pkg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdv%2Fcrappy-go-elasticsearch-pkg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdv%2Fcrappy-go-elasticsearch-pkg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fdv","download_url":"https://codeload.github.com/fdv/crappy-go-elasticsearch-pkg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdv%2Fcrappy-go-elasticsearch-pkg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284898608,"owners_count":27081525,"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","status":"online","status_checked_at":"2025-11-17T02:00:06.431Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09T07:21:54.536Z","updated_at":"2025-11-17T14:35:00.661Z","avatar_url":"https://github.com/fdv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crappy Code, don't use it!\n\nSo I've finally decided to learn Go seriously. It's the first time I'm diving into a new language since 2002, and I'm not a developer so expect crappy code, usual conventions violations and \"there's a much better way to do it\".\n\nMy main problem is I can't just follow tutorials so I needed a project to code on, hence this repo. So now you know.\n\n## Usage\n\n```\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/fdv/crappy-go-elasticsearch-pkg\"\n)\n\nfunc main() {\n\tcluster := elasticsearch.Init(\"http://localhost\", 9000)\n\n\tfmt.Println(cluster.Geturi())\n\tfmt.Println(cluster.Getport())\n\tfmt.Println(cluster.Getsettings())\n\tfmt.Println(cluster.Getsetting(\"cluster.routing.allocation.enable\"))\n}\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdv%2Fcrappy-go-elasticsearch-pkg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffdv%2Fcrappy-go-elasticsearch-pkg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdv%2Fcrappy-go-elasticsearch-pkg/lists"}