{"id":37199854,"url":"https://github.com/jordanrad/dasugo","last_synced_at":"2026-01-14T23:01:03.120Z","repository":{"id":157599407,"uuid":"633482370","full_name":"JordanRad/dasugo","owner":"JordanRad","description":"Minimalistic data structures utility library (Go)","archived":false,"fork":false,"pushed_at":"2023-04-28T07:10:42.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-06-28T01:08:11.120Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JordanRad.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-27T15:38:40.000Z","updated_at":"2023-06-06T09:27:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"ecfdffe6-581b-460d-a1de-89d5fda94027","html_url":"https://github.com/JordanRad/dasugo","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"purl":"pkg:github/JordanRad/dasugo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordanRad%2Fdasugo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordanRad%2Fdasugo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordanRad%2Fdasugo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordanRad%2Fdasugo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JordanRad","download_url":"https://codeload.github.com/JordanRad/dasugo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordanRad%2Fdasugo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28437916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-14T23:00:35.994Z","updated_at":"2026-01-14T23:01:02.193Z","avatar_url":"https://github.com/JordanRad.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DasuGo\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/JordanRad/dasugo)](https://goreportcard.com/report/github.com/JordanRad/dasugo)\n\nDasuGo is a Go utility library inspired by JavaScript's functional programming methods, such as map, reduce, filter, some, and intersect. It is written in Go and makes use of Go generics.\n\n## Features\n\n- A collection of functional programming methods inspired by JavaScript\n- Written in Go with support for Go generics\n- Easy to use and extend\n- Well-tested and production-ready\n\n## Installation\n\nTo use DasuGo in your Go project, simply run:\n\n```bash\ngo get github.com/JordanRad/dasugo\n```\n\n## Usage\n\nHere are some examples of how you can use DasuGo in your Go code:\n\n```go\nimport (\n    \"fmt\"\n    \"github.com/JordanRad/dasugo\"\n)\n\nfunc main() {\n    // Map example\n    numbers := []int{1, 2, 3, 4, 5}\n    doubledNumbers := dasugo.Map(numbers, func(n int) int {\n        return n * 2\n    })\n    fmt.Println(doubledNumbers) // Output: [2 4 6 8 10]\n\n    // Filter example\n    words := []string{\"foo\", \"bar\", \"baz\", \"qux\", \"quux\"}\n    filteredWords := dasugo.Filter(words, func(s string) bool {\n        return len(s) \u003c 4\n    })\n    fmt.Println(filteredWords) // Output: [foo bar baz]\n\n    // Reduce example\n    numbers := []int{1, 2, 3, 4, 5}\n    sum := dasugo.Reduce(numbers, func(acc, n int) int {\n        return acc + n\n    }, 0)\n    fmt.Println(sum) // Output: 15\n\n    // Some example\n    numbers := []int{1, 2, 3, 4, 5}\n    hasEvenNumbers := dasugo.Some(numbers, func(n int) bool {\n        return n%2 == 0\n    })\n    fmt.Println(hasEvenNumbers) // Output: true\n\n    // Contains example\n    numbers := []int{1, 2, 3, 4, 5}\n    containsThree := dasugo.Contains(numbers, 3)\n    fmt.Println(containsThreee) // Output: true\n\n    // Intersect example\n    numbers1 := []int{1, 2, 3, 4, 5}\n    numbers2 := []int{4, 5, 6, 7, 8}\n    commonNumbers := dasugo.Intersect(numbers1, numbers2)\n    fmt.Println(commonNumbers) // Output: [4 5]\n}\n```\n\n## Contributing\n\nWe welcome contributions to DasuGo! To contribute, simply fork this repository, make your changes, and submit a pull request. Before submitting your pull request, please make sure that your code passes the tests and that you have added tests for any new functionality.\n\n## License\n\nDasuGo is licensed under the MIT License. See the LICENSE file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordanrad%2Fdasugo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjordanrad%2Fdasugo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordanrad%2Fdasugo/lists"}