{"id":20213721,"url":"https://github.com/go-spring/starter-echo","last_synced_at":"2025-05-07T07:33:13.513Z","repository":{"id":57537873,"uuid":"286021654","full_name":"go-spring/starter-echo","owner":"go-spring","description":"「仅发布」echo 启动器 ( starter for echo )","archived":true,"fork":false,"pushed_at":"2022-10-09T09:39:16.000Z","size":1697,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T08:01:52.455Z","etag":null,"topics":["echo","go-spring","web"],"latest_commit_sha":null,"homepage":"https://go-spring.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/go-spring.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2020-08-08T10:27:24.000Z","updated_at":"2023-10-01T09:38:35.000Z","dependencies_parsed_at":"2022-09-07T16:41:37.150Z","dependency_job_id":null,"html_url":"https://github.com/go-spring/starter-echo","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-spring%2Fstarter-echo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-spring%2Fstarter-echo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-spring%2Fstarter-echo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-spring%2Fstarter-echo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-spring","download_url":"https://codeload.github.com/go-spring/starter-echo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252833918,"owners_count":21811276,"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":["echo","go-spring","web"],"created_at":"2024-11-14T06:11:10.369Z","updated_at":"2025-05-07T07:33:13.276Z","avatar_url":"https://github.com/go-spring.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# starter-echo\n\n[English](README_EN.md)\n\n[仅发布] 该项目仅为最终发布，不要向该项目直接提交代码，开发请关注 [go-spring](https://github.com/go-spring/go-spring) 项目。\n\n## Install\n\n### Prerequisites\n\n- Go \u003e= 1.12\n\n### Using go get\n\n```\ngo get github.com/go-spring/starter-echo@v1.1.0-rc2 \n```\n\n## Quick Start\n\n```\nimport _ \"github.com/go-spring/starter-echo\"\n```\n\n`main.go`\n\n```\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/go-spring/spring-core/gs\"\n\t\"github.com/go-spring/spring-core/web\"\n\t_ \"github.com/go-spring/starter-echo\"\n)\n\nfunc init() {\n\tgs.Object(new(Controller)).Init(func(c *Controller) {\n\t\tgs.GetMapping(\"/\", c.Hello)\n\t})\n}\n\ntype Controller struct {\n\tGOPATH string `value:\"${GOPATH}\"`\n}\n\nfunc (c *Controller) Hello(ctx web.Context) {\n\tctx.String(\"%s - hello world!\", c.GOPATH)\n}\n\nfunc main() {\n\tfmt.Println(gs.Run())\n}\n```\n\n`config/application.properties`\n\n```\nweb.server.port=8000\n```\n\n```\n➜ curl http://localhost:8000/\n/Users/didi/work - hello world!\n```\n\n## Customization\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-spring%2Fstarter-echo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-spring%2Fstarter-echo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-spring%2Fstarter-echo/lists"}