{"id":16122059,"url":"https://github.com/foxcapades/goop","last_synced_at":"2025-04-06T11:41:22.530Z","repository":{"id":90411050,"uuid":"264707225","full_name":"Foxcapades/goop","owner":"Foxcapades","description":"Options for Go's base types.","archived":false,"fork":false,"pushed_at":"2021-10-28T10:01:19.000Z","size":187,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T17:19:23.895Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Foxcapades.png","metadata":{"files":{"readme":"readme.adoc","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":"2020-05-17T16:14:42.000Z","updated_at":"2020-06-06T13:10:04.000Z","dependencies_parsed_at":"2023-03-13T17:58:37.102Z","dependency_job_id":null,"html_url":"https://github.com/Foxcapades/goop","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Foxcapades%2Fgoop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Foxcapades%2Fgoop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Foxcapades%2Fgoop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Foxcapades%2Fgoop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Foxcapades","download_url":"https://codeload.github.com/Foxcapades/goop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478234,"owners_count":20945262,"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":[],"created_at":"2024-10-09T21:09:16.220Z","updated_at":"2025-04-06T11:41:22.513Z","avatar_url":"https://github.com/Foxcapades.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Go Options\n:source-highlighter: pygments\n\nimage:https://www.travis-ci.org/Foxcapades/goop.svg?branch=master[\"Build Status\", link=\"https://www.travis-ci.org/Foxcapades/goop\"]\nimage:https://img.shields.io/github/v/tag/Foxcapades/goop?label=version[caption=\"Latest Tag\"]\nimage:https://goreportcard.com/badge/github.com/Foxcapades/goop[caption=\"Go Report Card\", link=\"https://goreportcard.com/report/github.com/Foxcapades/goop\"]\nimage:https://codecov.io/gh/Foxcapades/goop/branch/master/graph/badge.svg[caption=\"Coverage Report\", link=\"https://codecov.io/gh/Foxcapades/goop\"]\nimage:https://img.shields.io/github/license/Foxcapades/goop[GitHub]\n\nOption types for Go's basic builtin types.\n\n'''\n\n.cmd/example/main.go\n[source,go]\n----\nfunc main() {\n  fmt.Println(option.NewBool(true).\n    ForceMapToInt(func(b bool) int {\n      if b {\n        return 5\n      }\n      return 10\n    }).\n    ForceMapToString(strconv.Itoa).\n    ForceMapToUntyped(func(s string) interface{} { return NewTest(s) }).\n    MapToNillableString(func(t interface{}) *string { return nil }).\n    Or(\"15\"))\n}\n----","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxcapades%2Fgoop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxcapades%2Fgoop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxcapades%2Fgoop/lists"}