{"id":20755396,"url":"https://github.com/hrz8/lets-go-seeds","last_synced_at":"2025-06-17T09:01:50.282Z","repository":{"id":136511672,"uuid":"415831905","full_name":"hrz8/lets-go-seeds","owner":"hrz8","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-11T09:08:46.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T14:06:37.855Z","etag":null,"topics":["algorithms","anagram","go","refactoring","sql","tech-assessment"],"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/hrz8.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":"2021-10-11T08:00:42.000Z","updated_at":"2021-10-12T02:07:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0c1b7ae-3358-4769-8809-86a948db11b8","html_url":"https://github.com/hrz8/lets-go-seeds","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hrz8/lets-go-seeds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrz8%2Flets-go-seeds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrz8%2Flets-go-seeds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrz8%2Flets-go-seeds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrz8%2Flets-go-seeds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrz8","download_url":"https://codeload.github.com/hrz8/lets-go-seeds/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrz8%2Flets-go-seeds/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260326516,"owners_count":22992368,"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":["algorithms","anagram","go","refactoring","sql","tech-assessment"],"created_at":"2024-11-17T09:25:02.585Z","updated_at":"2025-06-17T09:01:50.192Z","avatar_url":"https://github.com/hrz8.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lets-go-bibit\n\n## What's going on here?\n- [DB Query](#01_Simple-Database-Query)\n- [OMDB API](#02_OMDB-API)\n- [Refactor](#03_Refactor)\n- [Logic](#04_Logic)\n\n## 01_Simple-Database-Query\n```sql\n# Create Users Table\nCREATE TABLE Users (\n  ID  int NOT NULL PRIMARY KEY AUTO_INCREMENT,\n  UserName nvarchar(255) NOT NULL,\n  Parent int NULL\n);\nALTER TABLE Users ADD FOREIGN KEY (Parent) REFERENCES Users (ID);\n\n# Query for Select User and ParentName\nSELECT\n  child.ID,\n  child.UserName,\n  COALESCE(parent.UserName, NULL) as 'ParentName'\nFROM Users child\n  LEFT JOIN Users parent ON (child.Parent = parent.ID);\n```\n\n## 02_OMDB-API\n\u003e Movies Microservices Task\n\nRepository: https://github.com/hrz8/go-seeding-omdb\n\n## 03_Refactor\n\u003e Refactor the function\n\n```go\nfunc FindFirstStringInBracket(str string) string {\n\tindexFirstBracketFound := strings.Index(str, \"(\")\n\tif len(str) == 0 || indexFirstBracketFound \u003c 0 {\n\t\treturn \"\"\n\t}\n\tstrRunes := []rune(str)\n\twordsAfterFirstBracket := string(strRunes[indexFirstBracketFound:len(str)])\n\tindexClosingBracketFound := strings.Index(wordsAfterFirstBracket, \")\")\n\tif indexClosingBracketFound \u003c 0 {\n\t\treturn \"\"\n\t}\n\tafterBracketRunes := []rune(wordsAfterFirstBracket)\n\treturn strings.Split(string(afterBracketRunes[1:indexClosingBracketFound]), \" \")[0]\n}\n```\n### Play the Game\n\n```bash\n[lets-go-bibit]$ cd 03_Refactor/\n[04_Logic]$ go test *.go\n```\n\n## 04_Logic\n\n\u003e Write a function to grouping list of string given based on anagram.\n\n### Play the Game\n\n```bash\n[lets-go-bibit]$ cd 04_Logic/\n[04_Logic]$ go run main.go\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrz8%2Flets-go-seeds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrz8%2Flets-go-seeds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrz8%2Flets-go-seeds/lists"}