{"id":16407124,"url":"https://github.com/710leo/toruk","last_synced_at":"2025-06-16T03:37:55.577Z","repository":{"id":74826545,"uuid":"63167875","full_name":"710leo/toruk","owner":"710leo","description":"Go web 开发脚手架","archived":false,"fork":false,"pushed_at":"2017-11-26T14:39:27.000Z","size":14,"stargazers_count":74,"open_issues_count":0,"forks_count":11,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-03T16:47:26.109Z","etag":null,"topics":["framework","golang","web-development","web-framework"],"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/710leo.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":"2016-07-12T15:06:33.000Z","updated_at":"2025-02-22T08:50:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c160b88-7740-4b26-9615-af620746ff73","html_url":"https://github.com/710leo/toruk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/710leo/toruk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/710leo%2Ftoruk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/710leo%2Ftoruk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/710leo%2Ftoruk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/710leo%2Ftoruk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/710leo","download_url":"https://codeload.github.com/710leo/toruk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/710leo%2Ftoruk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260090726,"owners_count":22957262,"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","golang","web-development","web-framework"],"created_at":"2024-10-11T06:12:11.639Z","updated_at":"2025-06-16T03:37:55.565Z","avatar_url":"https://github.com/710leo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toruk\n### go web 开发脚手架\n\n主要由下面几个第三方库集成，简单、灵活，可以快速开发web项目\n\n* 路由：github.com/gorilla/mux\n* 渲染模板：github.com/unrolled/render\n* Cookie封装：github.com/gorilla/securecookie\n* 中间件：github.com/codegangsta/negroni\n* 上下文传输：github.com/gorilla/context \n\n### 文件结构\n\u003cimg src=\"http://x2know.qiniudn.com/toruk2.png\" width = \"300\" style=\"margin-left:0px\" alt=\"图片描述\" align=center /\u003e\n\n\n### 使用方法\n通过修改http/ruote.go 将数据传到对应的handler中，然后在通过render将数据返回回去。\nruote.go \n\n    func configConfRoutes(r *mux.Router) {\n\t\tr.HandleFunc(\"/home\", handler.HomeIndex).Methods(\"GET\")\n\t}\n\nhandler.go\n\n    func HomeIndex(w http.ResponseWriter, r *http.Request) {\n\t\trender.HTML(r, w, \"home/index\")\n\t}\n\n### 初始化\n\n    # set $GOPATH and $GOROOT\n    # 比如你的项目名称叫做 awosome\n    cd $GOPATH/src\n    git clone https://github.com/710leo/Toruk.git\n    mv Toruk awosome\n    cd awosome\n    ./init awosome\n    go get ./...\n\n### 编译\u0026运行\n    ./control build\n    ./control start\n\n### 答疑\n交流QQ群：173502733\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F710leo%2Ftoruk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F710leo%2Ftoruk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F710leo%2Ftoruk/lists"}