35

常用第三方包

 5 years ago
source link: https://studygolang.com/articles/14861?amp%3Butm_medium=referral
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

包的介绍

包类似Java中概念, jar
是源代码管理,分发的最小单位。

目前多数包来自 Github
官方包来自 golang.org/x/...

可以在如下网址查询到高频使用的第三方包清单

https://godoc.org

常用清单

  1. github.com/astaxie/beego 成熟稳定的 Web 框架,包含更过的 Web Framework 特性 国内开发者 astaxie
  2. github.com/go-redis/redis 连接 Redis
  3. github.com/gomodule/redigo/redis 连接 Redis
  4. github.com/jinzhu/gorm 数据库 ORM 框架,类似Java领域的 HibernateMyBatis 国内开发者
  5. github.com/sirupsen/logrus 日志框架,类似Java领域的 log4j
  6. github.com/robfig/cron 定时任务,类似Java领域的 Quartz
  7. github.com/gin-gonic/gin 精巧高效的 Web 框架,多用于提供 Web 服务

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK