go-baseapp:Go Web服务器的轻量级起点-源码

上传者: 42119989 | 上传时间: 2021-02-10 12:03:42 | 文件大小: 63KB | 文件类型: ZIP
go-baseapp 一种用于在标准库之上构建Web应用程序的最小框架。 它提供: 日志,度量和路由的一系列依赖项,非常适合标准库 标准配置类型 基本的可配置服务器类型 默认(但可选)的中间件堆栈 这不会代替 , 或其他框架,但是如果您更喜欢简单应用程序的标准库,那么go-baseapp将为您节省启动新项目的时间。 用法 创建一个baseapp.Server对象,注册您的处理程序,然后启动服务器: func main () { config := baseapp. HTTPConfig { Address : "127.0.0.1" , Port : "8000" , } loggingConfig := baseapp. LoggingConfig { Pretty : true , Le

文件下载

资源详情

[{"title":"( 41 个子文件 63KB ) go-baseapp:Go Web服务器的轻量级起点-源码","children":[{"title":"go-baseapp-develop","children":[{"title":"pkg","children":[{"title":"errfmt","children":[{"title":"errfmt.go <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"example","children":[{"title":"config.yml <span style='color:#111;'> 134B </span>","children":null,"spread":false},{"title":"config.go <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"main.go <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false}],"spread":true},{"title":".github","children":[{"title":"workflows","children":[{"title":"codeql-analysis.yml <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"godel","children":[{"title":"config","children":[{"title":"check-plugin.yml <span style='color:#111;'> 362B </span>","children":null,"spread":false},{"title":"license-plugin.yml <span style='color:#111;'> 644B </span>","children":null,"spread":false},{"title":"format-plugin.yml <span style='color:#111;'> 74B </span>","children":null,"spread":false},{"title":"dist-plugin.yml <span style='color:#111;'> 456B </span>","children":null,"spread":false},{"title":"godel.yml <span style='color:#111;'> 534B </span>","children":null,"spread":false},{"title":"godel.properties <span style='color:#111;'> 187B </span>","children":null,"spread":false},{"title":"test-plugin.yml <span style='color:#111;'> 52B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"godelw <span style='color:#111;'> 8.26KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"baseapp","children":[{"title":"auth","children":[{"title":"oauth2","children":[{"title":"handler.go <span style='color:#111;'> 4.45KB </span>","children":null,"spread":false},{"title":"state.go <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"doc.go <span style='color:#111;'> 720B </span>","children":null,"spread":false},{"title":"sessions.go <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false}],"spread":true},{"title":"saml","children":[{"title":"serviceprovider.go <span style='color:#111;'> 6.84KB </span>","children":null,"spread":false},{"title":"state.go <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"doc.go <span style='color:#111;'> 778B </span>","children":null,"spread":false},{"title":"params.go <span style='color:#111;'> 5.10KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"server.go <span style='color:#111;'> 4.25KB </span>","children":null,"spread":false},{"title":"error.go <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false},{"title":"doc.go <span style='color:#111;'> 822B </span>","children":null,"spread":false},{"title":"recording_writer.go <span style='color:#111;'> 4.49KB </span>","children":null,"spread":false},{"title":"datadog","children":[{"title":"datadog_test.go <span style='color:#111;'> 2.47KB </span>","children":null,"spread":false},{"title":"datadog.go <span style='color:#111;'> 5.27KB </span>","children":null,"spread":false}],"spread":true},{"title":"config_test.go <span style='color:#111;'> 3.10KB </span>","children":null,"spread":false},{"title":"metrics.go <span style='color:#111;'> 3.10KB </span>","children":null,"spread":false},{"title":"middleware.go <span style='color:#111;'> 3.11KB </span>","children":null,"spread":false},{"title":"params.go <span style='color:#111;'> 2.99KB </span>","children":null,"spread":false},{"title":"logging.go <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"config.go <span style='color:#111;'> 3.37KB </span>","children":null,"spread":false}],"spread":false},{"title":".gitignore <span style='color:#111;'> 50B </span>","children":null,"spread":false},{"title":".circleci","children":[{"title":"config.yml <span style='color:#111;'> 569B </span>","children":null,"spread":false}],"spread":true},{"title":"go.sum <span style='color:#111;'> 40.52KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 7.01KB </span>","children":null,"spread":false},{"title":".policy.yml <span style='color:#111;'> 173B </span>","children":null,"spread":false},{"title":"go.mod <span style='color:#111;'> 542B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明