{"id":24926742,"url":"https://github.com/michaelwp/go-distance","last_synced_at":"2025-03-28T12:26:18.613Z","repository":{"id":52799411,"uuid":"358167784","full_name":"michaelwp/go-distance","owner":"michaelwp","description":"Ini adalah package bahasa pemrograman go sederhana untuk menghitung jarak antara dua titik latitude dan longitude.","archived":false,"fork":false,"pushed_at":"2021-04-19T07:27:35.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-02T12:53:10.529Z","etag":null,"topics":["distance","geolocation","go","latitute","longitude","module"],"latest_commit_sha":null,"homepage":"","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/michaelwp.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}},"created_at":"2021-04-15T07:30:30.000Z","updated_at":"2021-04-19T07:27:37.000Z","dependencies_parsed_at":"2022-09-26T19:02:37.787Z","dependency_job_id":null,"html_url":"https://github.com/michaelwp/go-distance","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fgo-distance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fgo-distance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fgo-distance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fgo-distance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelwp","download_url":"https://codeload.github.com/michaelwp/go-distance/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246028445,"owners_count":20712017,"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":["distance","geolocation","go","latitute","longitude","module"],"created_at":"2025-02-02T12:53:15.980Z","updated_at":"2025-03-28T12:26:18.590Z","avatar_url":"https://github.com/michaelwp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-distance v1.2.1\n\nIni adalah package bahasa pemrograman go sederhana untuk menghitung jarak antara dua titik latitude dan longitude.\n\n### func Count()\n```go\nfunc (l LatLon) Count() Miles\n```\n### func ToKilometre()\n```go\nfunc (m Miles) ToKilometre() Kilometre\n```\n### func ToMiles()\n```go\nfunc (k Kilometre) ToMiles() Miles\n```\n\n### Instalasi\n`go get -u github.com/michaelwp/go-distance`\n\n### Contoh penggunaan\n\n```go \npackage main\n\nimport (\n\t\"fmt\"\n\tgo_distance \"github.com/michaelwp/go-distance\"\n)\n\nfunc main()  {\n\tvar LatLon = go_distance.LatLon{\n\t\tLatStart: -6.2973856,\n\t\tLonStart: 106.6388177,\n\t\tLatEnd:   -6.3027637,\n\t\tLonEnd:   106.6410986,\n\t}\n\n\tfmt.Println(LatLon.Count(), \"mil\")\n\tfmt.Println(LatLon.Count().ToKilometre(), \"km\")\n}\n```\n#### Hasil\n```text\n0.5238991320272929 mil\n0.8431339247333317 km\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelwp%2Fgo-distance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelwp%2Fgo-distance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelwp%2Fgo-distance/lists"}