{"id":13786705,"url":"https://github.com/goa-go/goa","last_synced_at":"2026-02-22T07:09:12.746Z","repository":{"id":57495974,"uuid":"198966412","full_name":"goa-go/goa","owner":"goa-go","description":"Goa is a  web framework based on middleware, like koa.js.","archived":false,"fork":false,"pushed_at":"2019-12-06T10:29:45.000Z","size":112,"stargazers_count":49,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-17T22:36:27.620Z","etag":null,"topics":["framework","goa","golang","middleware"],"latest_commit_sha":null,"homepage":"https://goa-go.github.io","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/goa-go.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-26T07:12:23.000Z","updated_at":"2024-05-06T03:32:20.000Z","dependencies_parsed_at":"2022-08-28T20:20:08.820Z","dependency_job_id":null,"html_url":"https://github.com/goa-go/goa","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goa-go%2Fgoa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goa-go%2Fgoa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goa-go%2Fgoa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goa-go%2Fgoa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goa-go","download_url":"https://codeload.github.com/goa-go/goa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253645398,"owners_count":21941315,"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":["framework","goa","golang","middleware"],"created_at":"2024-08-03T19:01:29.546Z","updated_at":"2026-02-22T07:09:07.707Z","avatar_url":"https://github.com/goa-go.png","language":"Go","funding_links":[],"categories":["web框架","Web Frameworks","Web框架","web框架`web 框架`","Utility"],"sub_categories":["版本控制","Fail injection","Utility/Miscellaneous","实用程序/Miscellaneous","HTTP Clients","版本控制`版本控制相关库`"],"readme":"# Goa\n\n[![Build Status](https://travis-ci.org/goa-go/goa.svg?branch=master)](https://travis-ci.org/goa-go/goa)\n[![Codecov](https://codecov.io/gh/goa-go/goa/branch/master/graph/badge.svg)](https://codecov.io/github/goa-go/goa?branch=master)\n[![Go Doc](https://godoc.org/github.com/goa-go/goa?status.svg)](http://godoc.org/github.com/goa-go/goa)\n[![Go Report](https://goreportcard.com/badge/github.com/goa-go/goa)](https://goreportcard.com/report/github.com/goa-go/goa)\n[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)\n[![PR's Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](https://github.com/goa-go/goa/pull/new) \n\nGoa is under construction, if you are familiar with [koa](https://github.com/koajs/koa) or go and interested in this project, please join us.\n\n## What is goa?\n\ngoa = go + [koa](https://github.com/koajs/koa)\n\nJust like koa, goa is also not bundled with any middleware. But you can expand functionality to meet your needs at will by middlware. It is flexible, light, high-performance and extensible.\n\n## Installation\n\n```bash\n$ go get -u github.com/goa-go/goa\n```\n\n##  Hello Goa\n\n```go\nfunc main() {\n  app := goa.New()\n\n  app.Use(func(c *goa.Context) {\n    c.String(\"Hello Goa!\")\n  })\n  log.Fatal(app.Listen(\":3000\"))\n}\n```\n\n## Middleware\n\nGoa is a web framework based on middleware.\nHere is an example of using goa-router and logger.\n```go\npackage main\n\nimport (\n  \"fmt\"\n  \"log\"\n  \"time\"\n\n  \"github.com/goa-go/goa\"\n  \"github.com/goa-go/router\"\n)\n\nfunc logger(c *goa.Context) {\n  start := time.Now()\n\n  fmt.Printf(\n    \"[%s] \u003c-- %s %s\\n\",\n    start.Format(\"2006-01-02 15:04:05\"),\n    c.Method,\n    c.URL,\n  )\n  c.Next()\n  fmt.Printf(\n    \"[%s] --\u003e %s %s %d %s\\n\",\n    time.Now().Format(\"2006-01-02 15:04:05\"),\n    c.Method,\n    c.URL,\n    time.Since(start).Nanoseconds()/1e6,\n    \"ms\",\n  )\n}\n\nfunc main() {\n  app := goa.New()\n  r := router.New()\n\n  r.GET(\"/\", func(c *goa.Context) {\n    c.String(\"Hello Goa!\")\n  })\n\n  app.Use(logger)\n  app.Use(r.Routes())\n  log.Fatal(app.Listen(\":3000\"))\n}\n```\n\nIf you are unwilling to use goa-router, you can make a custom router middleware as you like.\n\n## Maintainers\n\n[@NicholasCao](https://github.com/NicholasCao).\n\n## License\n\n[MIT](https://github.com/goa-go/goa/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoa-go%2Fgoa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoa-go%2Fgoa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoa-go%2Fgoa/lists"}