{"id":16446488,"url":"https://github.com/edoardottt/golazy","last_synced_at":"2025-10-24T12:29:04.328Z","repository":{"id":109574829,"uuid":"460174046","full_name":"edoardottt/golazy","owner":"edoardottt","description":"Golang module exporting general purpose functions I get tired of rewriting every time","archived":false,"fork":false,"pushed_at":"2024-11-10T09:03:02.000Z","size":91,"stargazers_count":22,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-17T21:43:38.190Z","etag":null,"topics":["go","go-library","go-module","go-modules","golang","golang-library","golang-module","util"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/edoardottt/golazy","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edoardottt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"edoardottt","liberapay":"edoardottt","patreon":"edoardottt","ko_fi":"edoardottt","open_collective":"edoardottt","custom":"https://www.paypal.me/edoardottt"}},"created_at":"2022-02-16T20:53:24.000Z","updated_at":"2025-03-17T14:00:04.000Z","dependencies_parsed_at":"2023-11-29T11:25:36.732Z","dependency_job_id":"426dec64-f294-46a7-8163-1652e5d1e895","html_url":"https://github.com/edoardottt/golazy","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/edoardottt%2Fgolazy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edoardottt%2Fgolazy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edoardottt%2Fgolazy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edoardottt%2Fgolazy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edoardottt","download_url":"https://codeload.github.com/edoardottt/golazy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244745632,"owners_count":20503042,"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","go-library","go-module","go-modules","golang","golang-library","golang-module","util"],"created_at":"2024-10-11T09:47:47.501Z","updated_at":"2025-10-24T12:29:04.216Z","avatar_url":"https://github.com/edoardottt.png","language":"Go","funding_links":["https://github.com/sponsors/edoardottt","https://liberapay.com/edoardottt","https://patreon.com/edoardottt","https://ko-fi.com/edoardottt","https://opencollective.com/edoardottt","https://www.paypal.me/edoardottt"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/edoardottt/images/blob/main/golazy/golazy.png\"\u003e\u003cbr\u003e\n  \u003cb align=\"center\"\u003e🌴golazy🍸\u003c/b\u003e\u003cbr\u003e\n  \u003cp align=\"center\"\u003eGolang module exporting general purpose functions I get tired of rewriting every time\u003c/p\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/edoardottt/golazy/actions\"\u003e\n \u003cimg src=\"https://github.com/edoardottt/golazy/actions/workflows/go.yml/badge.svg\" alt=\"workflows\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pkg.go.dev/github.com/edoardottt/golazy\"\u003e\u003cimg src=\"https://pkg.go.dev/badge/github.com/edoardottt/golazy.svg\" alt=\"Go Reference\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n----------\n\n```console\ngo get github.com/edoardottt/golazy\n```\n\n\u003cbr\u003e\n\n| Name | Description |\n| ----- | ------ |\n| [ScanInputStdin() []string](https://github.com/edoardottt/golazy/blob/main/golazy.go#L39) | It returns the array of elements taken as input on stdin. |\n| [RemoveDuplicateStrings(strSlice []string) []string](https://github.com/edoardottt/golazy/blob/main/golazy.go#L55) | It removes duplicates from a slice of strings taken as input and returns the result |\n| [RemoveDuplicateInts(intSlice []int) []int](https://github.com/edoardottt/golazy/blob/main/golazy.go#L69) | It removes duplicates from a slice of integers taken as input and returns the result |\n| [RemoveDuplicateFloats(floatSlice []float64) []float64](https://github.com/edoardottt/golazy/blob/main/golazy.go#L83) | It removes duplicates from a slice of floats taken as input and returns the result |\n| [AppendOutputToTxt(output string, filename string)](https://github.com/edoardottt/golazy/blob/main/golazy.go#L97) | It tries to append the output string in the file \"filename\" taken as input. |\n| [AppendOutputToTxtAndExit(output string, filename string)](https://github.com/edoardottt/golazy/blob/main/golazy.go#L111) | It appends the output string in the file \"filename\" taken as input, but if it encounters an error it logs it and exits. |\n| [GetHost(input string) (string, error)](https://github.com/edoardottt/golazy/blob/main/golazy.go#L129) | It takes as input a string and tries to parse it as url, if it's a well formatted url it returns the host (the domain if you prefer) |\n| [GetProtocol(input string) (string, error)](https://github.com/edoardottt/golazy/blob/main/golazy.go#L141) | It takes as input a string and tries to parse it as url, if it's a well formatted url it returns the protocol |\n| [HasProtocol(input string) bool](https://github.com/edoardottt/golazy/blob/main/golazy.go#L152) | It takes as input a string and checks if it has a protocol ( like in a URI/URL) |\n| [RemoveProtocol(input string) string](https://github.com/edoardottt/golazy/blob/main/golazy.go#L160) | It removes the protocol from the input string (something://...). If it's not present it returns the input |\n| [RemovePort(input string) string](https://github.com/edoardottt/golazy/blob/main/golazy.go#L170) | It removes port from the input string. If it's not present it returns the input |\n| [SameDomain(url1 string, url2 string) bool](https://github.com/edoardottt/golazy/blob/main/golazy.go#L179) | It checks if two urls have the same domain |\n| [GetPath(input string) (string, error)](https://github.com/edoardottt/golazy/blob/main/golazy.go#L196) | It returns the path of the input string (if correctly URL-formatted) |\n| [ReadFileLineByLine(inputFile string) []string](https://github.com/edoardottt/golazy/blob/main/golazy.go#L206) | It reads from a file taken as input and returns a slice of strings (duplicates allowed). |\n| [GenerateRandomUserAgent() string](https://github.com/edoardottt/golazy/blob/main/golazy.go#L286) | It generates a Random User Agent. |\n\n\u003cbr\u003e\n\nLicense 📝\n-------\n\nThis repository is under [GNU General Public License v3.0](https://github.com/edoardottt/golazy/blob/main/LICENSE).  \n[edoardottt.com](https://edoardottt.com) to contact me.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedoardottt%2Fgolazy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedoardottt%2Fgolazy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedoardottt%2Fgolazy/lists"}