{"id":16466854,"url":"https://github.com/matriphe/bedinde","last_synced_at":"2026-06-05T21:31:58.726Z","repository":{"id":57521526,"uuid":"133227116","full_name":"matriphe/bedinde","owner":"matriphe","description":"Go package that provide basic formatting and function.","archived":false,"fork":false,"pushed_at":"2018-05-22T16:09:15.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-10T17:25:13.608Z","etag":null,"topics":["hacktoberfest"],"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/matriphe.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":"2018-05-13T10:34:00.000Z","updated_at":"2022-10-01T16:11:48.000Z","dependencies_parsed_at":"2022-09-26T18:01:21.180Z","dependency_job_id":null,"html_url":"https://github.com/matriphe/bedinde","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/matriphe%2Fbedinde","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matriphe%2Fbedinde/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matriphe%2Fbedinde/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matriphe%2Fbedinde/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matriphe","download_url":"https://codeload.github.com/matriphe/bedinde/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241052090,"owners_count":19900956,"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":["hacktoberfest"],"created_at":"2024-10-11T11:44:59.910Z","updated_at":"2025-02-27T19:44:12.612Z","avatar_url":"https://github.com/matriphe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bedinde\n\n[![Build Status](https://travis-ci.org/matriphe/bedinde.svg?branch=master)](https://travis-ci.org/matriphe/bedinde)\n\n**Bedinde** is Go package that provide basic formatting and function.\n\n[The word *bedinde* in Indonesian means *helper*](https://kbbi.kemdikbud.go.id/entri/bedinde), so basically this is a helpers package.\n\n## Installation\n\n```shell\ngo get -u github.com/matriphe/bedinde\n```\n\n## Function Lists\n\n### InArray\n\nCheck if value is in array.\n\n```go\na := []string{\"a\", \"b\", \"c\", \"d\"}\n\nexists, index := bedinde.InArray(\"c\", a) // return true, 2\nexists, index := bedinde.InArray(\"e\", a) // return false, -1\n```\n\n### FormatNumber\n\nFormat number using separator.\n\n```go\nr := bedinde.FormatNumber(12345, \"id\") // return \"12.345\"\nr := bedinde.FormatNumber(12345, \"en\") // return \"12,345\"\n```\n\n### FormatPhone\n\nFormat phone number to E164 standard.\n\n```go\nr := bedinde.FormatPhone(\"081823456789\", \"id\") // return \"+6281823456789\"\nr := bedinde.FormatPhone(\"081823456789\", \"sg\") // return \"+65081823456789\"\n```\n\n### FormatTimeDiff\n\nFormat time difference to its components.\n\n```go\nd, _ := time.ParseDuration(\"2h3m4s\")\nr := bedinde.FormatTimeDiff(d) // return TimeDiff{Day: 0, Hour: 2, Minute: 3, Second: 4}\n```\n\n### DateStringToTime\n\nConvert date string to `time.Time`.\n\n```go\nr := bedinde.DateStringToTime(\"2018-05-22\", \"Asia/Jakarta\") // return 2018-05-22 00:00:00 +0700 WIB\n```\n\n### DatetimeStringToTime\n\nConvert datetime string to `time.Time`.\n\n```go\nr := bedinde.DatetimeStringToTime(\"2018-05-22 22:40:26\", \"Asia/Jakarta\") // return 2018-05-22 22:40:26 +0700 WIB\n```\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatriphe%2Fbedinde","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatriphe%2Fbedinde","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatriphe%2Fbedinde/lists"}