{"id":42691835,"url":"https://github.com/jimxl/gream","last_synced_at":"2026-01-29T13:05:24.278Z","repository":{"id":70603243,"uuid":"156982601","full_name":"jimxl/gream","owner":"jimxl","description":"Gream is a Dream Web Framework written in Go(Golang)","archived":false,"fork":false,"pushed_at":"2018-12-16T16:56:50.000Z","size":154,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-10-20T20:46:17.857Z","etag":null,"topics":["dream","go","golang","web","webframework"],"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/jimxl.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}},"created_at":"2018-11-10T13:14:21.000Z","updated_at":"2022-03-16T11:53:46.000Z","dependencies_parsed_at":"2023-06-10T06:00:31.239Z","dependency_job_id":null,"html_url":"https://github.com/jimxl/gream","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"purl":"pkg:github/jimxl/gream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimxl%2Fgream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimxl%2Fgream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimxl%2Fgream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimxl%2Fgream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimxl","download_url":"https://codeload.github.com/jimxl/gream/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimxl%2Fgream/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28877889,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"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":["dream","go","golang","web","webframework"],"created_at":"2026-01-29T13:05:20.351Z","updated_at":"2026-01-29T13:05:24.253Z","avatar_url":"https://github.com/jimxl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gream\n\nGream is a Dream Web Framework written in Go(Golang)\n\n## Router\n\n```go\nGET(\"/home/{name}\", \"home#index\")\nGET(\"/home_json/{name}\", \"home#index_json\")\nGET(\"/admin_home/{name}\", \"admin/home#index\")\n\nscope := Scope(\"scope\")\n{\n    scope.GET(\"/home1/{name}\", \"home#index\")\n    scope.GET(\"/home2/{name}\", \"home#index\")\n}\n\nscope = Scope(H{\"module\": \"admin\"})\n{\n    scope.GET(\"/home1/{name}\", \"home#index\")\n    scope.GET(\"/home2/{name}\", \"home#index\")\n}\n\nGET(\"/home_path/{name}\", \"home#index\", H{\"path\": \"ttt\"})\nGET(\"/home_module/{name}\", \"home#index\", H{\"module\": \"admin\"})\n\nnamespace := Namespace(\"admin\")\n{\n    namespace.GET(\"/homea/{name}\", \"home#index\")\n    namespace.GET(\"/homeb/{name}\", \"home#index\")\n}\n\n//Resources(\"users\", H{\"except\": \"index\"})\nResources(\"users\", H{\"only\": \"index,new\"})\n```\n\n## Controller and Action\n\n```go\npackage controllers\n\nimport (\n\t\"fmt\"\n\t. \"github.com/jimxl/gream/web\"\n)\n\nfunc init() {\n\tController(\"home\")\n\n\tBeforeAll(allFilter)\n\tBeforeAction(\"index\", indexFilter)\n\n\tAction(\"index\", func(ctx Context) {\n\t\tctx.Writef(\"hello, %s\", ctx.Params().GetString(\"name\"))\n\t})\n}\n\nfunc indexFilter(ctx Context) bool {\n\tfmt.Printf(\"index filter, controller %s, action: %s\\n\", ctx.Values().Get(\"controller\"), ctx.Values().Get(\"action\"))\n\treturn true\n}\n\nfunc allFilter(ctx Context) bool {\n\tfmt.Printf(\"all filter, controller %s, action: %s\\n\", ctx.Values().Get(\"controller\"), ctx.Values().Get(\"action\"))\n\treturn true\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimxl%2Fgream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimxl%2Fgream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimxl%2Fgream/lists"}