{"id":28116660,"url":"https://github.com/nsheremet/banjo","last_synced_at":"2025-05-14T06:09:37.823Z","repository":{"id":57496999,"uuid":"113671825","full_name":"gdwrd/banjo","owner":"gdwrd","description":"BANjO is a simple web framework written in Go (golang)","archived":false,"fork":false,"pushed_at":"2018-01-31T16:42:14.000Z","size":23,"stargazers_count":24,"open_issues_count":4,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T20:04:37.307Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://nsheremet.pw/banjo","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gdwrd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-09T13:35:31.000Z","updated_at":"2024-04-30T13:08:05.000Z","dependencies_parsed_at":"2022-09-03T03:33:45.848Z","dependency_job_id":null,"html_url":"https://github.com/gdwrd/banjo","commit_stats":null,"previous_names":["n4zz2/banjo","nsheremet/banjo"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdwrd%2Fbanjo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdwrd%2Fbanjo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdwrd%2Fbanjo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdwrd%2Fbanjo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gdwrd","download_url":"https://codeload.github.com/gdwrd/banjo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254082293,"owners_count":22011735,"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":[],"created_at":"2025-05-14T06:02:10.242Z","updated_at":"2025-05-14T06:09:37.816Z","avatar_url":"https://github.com/gdwrd.png","language":"Go","funding_links":[],"categories":["web框架","Web Frameworks","Web框架","web框架`web 框架`"],"sub_categories":["版本控制","Utility/Miscellaneous","实用程序/Miscellaneous","Advanced Console UIs","HTTP Clients","版本控制`版本控制相关库`","交流"],"readme":"# BANjO\n\n[![Build Status](https://travis-ci.org/nsheremet/banjo.svg?branch=master)](https://travis-ci.org/nsheremet/banjo)\n[![Software License](https://img.shields.io/badge/License-MPL--2.0-green.svg)](https://github.com/nsheremet/banjo/blob/master/LICENSE.md)\n[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/github.com/nsheremet/banjo)\n[![Coverage Status](http://codecov.io/github/nsheremet/banjo/coverage.svg?branch=master)](http://codecov.io/github/nsheremet/banjo?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/nsheremet/banjo)](https://goreportcard.com/report/github.com/nsheremet/banjo)\n\n**banjo** it's a simple web framework for building simple web applications\n\n## Install\n\n```bash \n$ go get github.com/nsheremet/banjo\n```\n\n## Example Usage\n\nSimple Web App - `main.go`\n\n```go\npackage main\n\nimport \"banjo\"\n\nfunc main() {\n  app := banjo.Create(banjo.DefaultConfig())\n  \n  app.Get(\"/\", func(ctx *banjo.Context) {\n    ctx.JSON(banjo.M{\"foo\":\"bar\"})\n  })\n\n  app.Run()\n}\n```\n\nExample responses:\n\n```go\n// ... Redirect To\n  app.Get(\"/admin\", func(ctx *banjo.Context) {\n    ctx.RedirectTo(\"/\")\n  })\n// ... HTML\n  app.Get(\"/foo\", func(ctx *banjo.Context) {\n    ctx.HTML(\"\u003ch1\u003eHello from BONjO!\u003c/h1\u003e\")\n  })\n// ... Return Params as JSON\n  app.Post(\"/bar\", func(ctx *banjo.Context) {\n    ctx.JSON(banjo.M{\n      \"params\": ctx.Request.Params\n    })\n    ctx.Response.Status = 201\n  })\n```\n\n## License\n\n`banjo` is primarily distributed under the terms of Mozilla Public License 2.0.\n\nSee LICENSE for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsheremet%2Fbanjo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsheremet%2Fbanjo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsheremet%2Fbanjo/lists"}