{"id":15603177,"url":"https://github.com/apfohl/go-monadic","last_synced_at":"2025-03-29T13:24:50.761Z","repository":{"id":213341459,"uuid":"657337166","full_name":"apfohl/go-monadic","owner":"apfohl","description":"A functional programming library for Go","archived":false,"fork":false,"pushed_at":"2023-12-19T19:21:25.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T10:11:28.647Z","etag":null,"topics":["functional-programming","go","monads"],"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/apfohl.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}},"created_at":"2023-06-22T21:00:01.000Z","updated_at":"2023-06-22T21:53:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"503b518a-4e56-4d2b-b4ac-eb76e302fbb9","html_url":"https://github.com/apfohl/go-monadic","commit_stats":null,"previous_names":["apfohl/go-monadic"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apfohl%2Fgo-monadic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apfohl%2Fgo-monadic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apfohl%2Fgo-monadic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apfohl%2Fgo-monadic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apfohl","download_url":"https://codeload.github.com/apfohl/go-monadic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246188762,"owners_count":20737754,"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":["functional-programming","go","monads"],"created_at":"2024-10-03T03:01:56.483Z","updated_at":"2025-03-29T13:24:50.740Z","avatar_url":"https://github.com/apfohl.png","language":"Go","readme":"# Go monadic\n\n\"Go monadic\" is a functional programming library for Go. It's purpose is to provide\nbasic monad implementations to support functional programming approaches in Go.\n\n## Monads\n\n- Maybe\n\n## API\n\nThis section describes the API of the library and how to use it.\n\n### Maybe\n\nThe `Maybe` monad encapsulates a value and provides functions to `Map` the value and\nto compose it with other functions returning a value of the `Maybe` type through `Bind`.\n`Maybe` can be in two states: `Just` and `Nothing`. In the `Just` state it's containing\nan actual value. In the `Nothing` state it's empty.\n\nTo create a value of `Maybe` there are two ways:\n\n- `functional.Just[int, int](42)`: This creates a `Maybe` containing a value\n- `functional.Nothing[int, int]`: This creates an empty `Maybe`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapfohl%2Fgo-monadic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapfohl%2Fgo-monadic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapfohl%2Fgo-monadic/lists"}