美文网首页
go web 技术栈

go web 技术栈

作者: random233 | 来源:发表于2020-05-27 10:03 被阅读0次

go web 技术栈 摘抄自 hacker news

There is no real good framework and anybody can write a trie based router in 2 hours:

https://vluxe.io/golang-router.html

However, Go ecosystem is starting to look interesting library-wise, as long as your project doesn't involve enterprise integration with legacy XML services or SOAP, because Go sucks at mostly anything XML.

For templating I use Jet because the standard templating library is too basic for professional use https://github.com/CloudyKit/jet .

I don't use ORM, I use https://github.com/Masterminds/squirrel for query building and https://github.com/jmoiron/sqlx which helps deals with row<=>struct conversion. For database migrations, I use https://github.com/rubenv/sql-migrate , but if you need an ORM gorm https://github.com/jinzhu/gorm is OK if you do code first and sqlboiler https://github.com/volatiletech/sqlboiler is OK if you do database first.

For session handling I use scs github.com/alexedwards/scs , for converting form encoded data to go structs I use github.com/gorilla/schema, for logging I use zap https://github.com/uber-go/zap. For managing roles in an app I use either the voter pattern https://symfony.com/doc/current/security/voters.html in simple cases or casbin github.com/casbin/casbin . For background jobs I used https://github.com/gocraft/work and https://github.com/gocelery/gocelery , for caching i just use redis https://github.com/go-redis/redis , for data validation I used https://github.com/asaskevich/govalidator or https://github.com/go-ozzo/ozzo-validation . For sending mails to customers I used https://github.com/go-gomail/gomail

相关文章

  • go web 技术栈

    go web 技术栈 摘抄自 hacker news There is no real good framewor...

  • 优秀网站

    一.语言栈 GO go 博客 Go中国 zupzup : web Ewan : 微服务 go开源项目 Beego:...

  • Go语言打造高并发web即时聊天(IM-Instant Mess

    Go语言打造高并发web即时聊天(IM)应用-支持10万人同时在线 1.技术栈 1.1.前端技术 h5ajax发送...

  • [内部]Java Web技术栈宣讲

    Java Web 技术栈宣讲 随着公司技术线路转型工作的不断深入,Java Web技术栈也已经基本确定,本次培训将...

  • 多技术栈基于docker 的CI/CD实战

    背景 现在项目中拥有多种技术栈的服务,如Go,Java,Web服务,以及其他类服务。在做CI/CD时,不得不根据技...

  • 《Javaweb开发实例大全》限时免费啦!

    Java Web,是用Java技术来解决相关web互联网领域的技术栈。web包括:web服务端和web客户端两部分...

  • 技术栈

    技术栈 Java Web 并发基础 [ ] CopyOnWrite [ ] 线程池 [ ] CAS [ ] AQS...

  • Web 技术栈对比

    一提到web开发,目前在世界上流行性的三个帮派就是php,java和asp.net,这个世界上的百分之99的网站或...

  • Web Application 技术栈

    本文只是记录一下我目前接触到的一些web application开发中可能用到的技术,并不全面,也不够详细,仅供参...

  • Web技术栈概览

    前端+后端的需求——>产品上线。不同阶段用到的技术。结合百度脑图完成。 百度脑图:http://naotu.bai...

网友评论

      本文标题:go web 技术栈

      本文链接:https://www.haomeiwen.com/subject/srgiahtx.html