{"id":37114900,"url":"https://github.com/kittizz/fxx","last_synced_at":"2026-01-14T13:30:13.626Z","repository":{"id":57658411,"uuid":"469922108","full_name":"kittizz/fxx","owner":"kittizz","description":"An add on for Fx:","archived":true,"fork":false,"pushed_at":"2022-03-14T23:06:21.000Z","size":6,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-15T15:20:36.762Z","etag":null,"topics":["addon","app-framework","dependency-injection","framework","fx","go","golang","uber-go"],"latest_commit_sha":null,"homepage":"","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/kittizz.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}},"created_at":"2022-03-14T22:18:08.000Z","updated_at":"2023-06-27T15:56:08.000Z","dependencies_parsed_at":"2022-09-12T15:13:24.991Z","dependency_job_id":null,"html_url":"https://github.com/kittizz/fxx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kittizz/fxx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kittizz%2Ffxx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kittizz%2Ffxx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kittizz%2Ffxx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kittizz%2Ffxx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kittizz","download_url":"https://codeload.github.com/kittizz/fxx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kittizz%2Ffxx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28421212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["addon","app-framework","dependency-injection","framework","fx","go","golang","uber-go"],"created_at":"2026-01-14T13:30:12.571Z","updated_at":"2026-01-14T13:30:13.464Z","avatar_url":"https://github.com/kittizz.png","language":"Go","readme":"# 🦜 Fxx [![GoDoc][doc-img]][doc]\n\nAn add on for [Fx](https://github.com/uber-go/fx):\n\n* add `func MultiProvide()  fx.Option`.\n\n## Installation\n\nWe recommend locking to [SemVer](http://semver.org/) range `^1` using [go mod](https://github.com/golang/go/wiki/Modules):\n\n```shell\ngo get go.uber.org/fx@v1\ngo get github.com/kittizz/fxx\n```\n\n## Example\n```go\nfunc main() {\n\tfx.New(\n\t\tfxx.MultiProvide(\n\t\t\trepository.NewRepository,\n\t\t\tuser_service.NewUserService,\n\t\t),\n\t\tfx.Invoke(\n\t\t\tfunc(\n\t\t\t\tuserRepo *user_repository.UserRepository,\n\t\t\t\torderRepo *order_repository.OrderRepository,\n\t\t\t) {\n\t\t\t\tfmt.Println(\"Loadin :\", userRepo.GetUser())\n\t\t\t\tfor k, v := range orderRepo.List() {\n\t\t\t\t\tfmt.Println(\"My Order \u003e\", \"[\"+k+\"]\", v)\n\t\t\t\t}\n\t\t\t\tos.Exit(0)\n\t\t\t},\n\t\t),\n\t).Run()\n}\n....\n\npackage repository\n\nvar NewRepository = fxx.Modules(\n\tuser_repository.NewUserRepository,\n\torder_repository.NewOrderRepository,\n)\n....\n\npackage user_service\n\nfunc NewUserService() *UserService {\n\treturn \u0026UserService{}\n}\n\n\n\n```\n  \n\n[doc-img]: http://img.shields.io/badge/GoDoc-Reference-blue.svg\n[doc]: https://godoc.org/github.com/kittizz/fxx\n\n ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkittizz%2Ffxx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkittizz%2Ffxx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkittizz%2Ffxx/lists"}