{"id":18776000,"url":"https://github.com/way29/optfunc","last_synced_at":"2025-12-15T05:30:12.727Z","repository":{"id":135492121,"uuid":"314242748","full_name":"WAY29/optfunc","owner":"WAY29","description":"Optional Parameters for go functions","archived":false,"fork":false,"pushed_at":"2020-11-19T13:07:58.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-29T09:25:24.420Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WAY29.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":"2020-11-19T12:34:13.000Z","updated_at":"2020-11-25T07:05:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e90edab-44c6-44c2-98f3-a698fe3463a3","html_url":"https://github.com/WAY29/optfunc","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/WAY29%2Foptfunc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WAY29%2Foptfunc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WAY29%2Foptfunc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WAY29%2Foptfunc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WAY29","download_url":"https://codeload.github.com/WAY29/optfunc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239683584,"owners_count":19679985,"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-11-07T19:44:29.024Z","updated_at":"2025-12-15T05:30:12.673Z","avatar_url":"https://github.com/WAY29.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OPTFUNC\n***Optional Parameters for go functions***\n\n## Examples\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t. \"github.com/WAY29/optfunc\"\n)\n\n/*\nUse optfunc.With for options\n\naddress string \"127.0.0.1\"\n\nport string \"80\"\n*/\nfunc NewClient(opts ...Options) {\n\to := NewOptions(\n\t\tOptionsParams{\n\t\t\t\"address\": \"127.0.0.1\",\n\t\t\t\"port\":    \"80\",\n\t\t},\n\t).Apply(opts...)\n\tfmt.Printf(\"Address is %s:%s\\n\", o.Get(\"address\"), o.Get(\"port\"))\n}\n\nfunc main() {\n\tNewClient()\n\tNewClient(With(\"address\", \"192.168.1.1\"))\n}\n\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fway29%2Foptfunc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fway29%2Foptfunc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fway29%2Foptfunc/lists"}