wangbjun / gen Goto Github PK
View Code? Open in Web Editor NEW基于Gin框架开发的脚手架工具,便于使用Go快速开发接口,集成数据库、日志、配置等开源库,开箱即用
License: Apache License 2.0
基于Gin框架开发的脚手架工具,便于使用Go快速开发接口,集成数据库、日志、配置等开源库,开箱即用
License: Apache License 2.0
文章和代码写的都挺好,代码也写的很优雅,只是要是想运行起来实战下还需要一些前置依赖和API使用demo,不知道能否补充
github.com/facebookgo/inject
zlog.Logger.Sugar().Errorf("open connection failed,error: %s", "ssss")
{"level":"error","caller":"ginNew/main.go:19","msg":"open connection failed,error: ssss"}
{"level":"error","caller":"ginNew/main.go:19","msg":"open connection failed,error: ssss"}
{"level":"error","caller":"ginNew/main.go:19","msg":"open connection failed,error: ssss"}
{"level":"error","caller":"ginNew/main.go:19","msg":"open connection failed,error: ssss"}
这样怎么处理
大佬,可以内置个swagger进去,基本就比较完善了
日志任何登记 打印 都看不到,怎么配置?
检测到 wangbjun/gen 一共引入了56个开源组件,存在1个漏洞
漏洞标题:jwt-go 安全漏洞
缺陷组件:github.com/dgrijalva/[email protected]+incompatible
漏洞编号:CVE-2020-26160
漏洞描述:jwt-go是个人开发者的一个Go语言的JWT实现。
jwt-go 4.0.0-preview1之前版本存在安全漏洞。攻击者可利用该漏洞在使用[]string{} for m[\"aud\"](规范允许)的情况下绕过预期的访问限制。
影响范围:(∞, 4.0.0-preview1)
最小修复版本:4.0.0-preview1
缺陷组件引入路径:gen@->github.com/dgrijalva/[email protected]+incompatible
另外还有几个漏洞,详细报告:https://mofeisec.com/jr?p=ac034c
研究一下最近也想写个自己的脚手架,简单好用快速响应处理即可,不整理那些华丽呼哨的 快速实现产品即可,前端的交互必须好看
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.