V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
alfredhuo
V2EX  ›  程序员

想找一个不错的 golang web 项目,来学习一下, V 友们有推荐的吗?

  •  2
     
  •   alfredhuo · 2019-10-24 00:45:51 +08:00 · 9359 次点击
    这是一个创建于 1638 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最近在学习 golang web 开发,想看看比较不错的用 golang 写的 web 项目,然后自己写个博客之类的,想提前参考一下比较有些的代码结构和风格,提前谢谢大家

    40 条回复    2021-05-18 11:33:22 +08:00
    tomoya92
        1
    tomoya92  
       2019-10-24 07:24:24 +08:00 via iPhone
    VDimos
        2
    VDimos  
       2019-10-24 09:17:58 +08:00 via Android
    我觉得你在暗指开源 bilibili 代码
    alfredhuo
        3
    alfredhuo  
    OP
       2019-10-24 09:50:22 +08:00
    @VDimos 不是
    alfredhuo
        4
    alfredhuo  
    OP
       2019-10-24 10:08:48 +08:00
    @tomoya92 beego 写的, 有 gin 写的吗?
    tomoya92
        5
    tomoya92  
       2019-10-24 10:11:04 +08:00
    @shuaibinghuo #4 没有,这个项目写的比较早了,也没什么 bug,好长时间没更新了,上手 golang 很好的项目
    hkitdog
        6
    hkitdog  
       2019-10-24 10:37:58 +08:00 via iPhone
    為什麼不直接看 gin 源碼呢...
    alfredhuo
        7
    alfredhuo  
    OP
       2019-10-24 10:54:35 +08:00
    @hkitdog 我看了 gin 的源码了,还想看看用 gin 写的 web 项目
    alfredhuo
        8
    alfredhuo  
    OP
       2019-10-24 10:58:50 +08:00
    不管是 restfulAPI 还是个人博客 ,只要是用 gin webframwork 写的都可以。
    janxin
        9
    janxin  
       2019-10-24 11:01:24 +08:00
    gin 啊,我怀疑你在暗指 open-bilibili
    cryingsky
        10
    cryingsky  
       2019-10-24 11:14:07 +08:00   ❤️ 1
    alfredhuo
        11
    alfredhuo  
    OP
       2019-10-24 11:17:44 +08:00
    @cryingsky 谢谢
    alfredhuo
        12
    alfredhuo  
    OP
       2019-10-24 11:18:23 +08:00
    @janxin 不用像 open-bilibili 那么大的项目,小项目即可,😝
    zunceng
        13
    zunceng  
       2019-10-24 14:47:41 +08:00
    @shuaibinghuo 当年我怎么没你的觉悟呢 我参考了 docker server 自己撸了个 http router ....
    chuhemiao
        14
    chuhemiao  
       2019-10-24 15:26:49 +08:00
    zohan
        15
    zohan  
       2019-10-24 15:29:23 +08:00
    https://github.com/go-courier

    我们公司自己研发的 golang 框架,欢迎指教😁
    scnace
        16
    scnace  
       2019-10-24 15:34:48 +08:00 via Android
    goplay.space(试图带歪
    gogo789
        17
    gogo789  
       2019-10-24 17:45:07 +08:00
    JRay
        18
    JRay  
       2019-10-24 17:49:35 +08:00
    bilibili
    sulinehk
        19
    sulinehk  
       2019-10-24 17:57:11 +08:00 via Android
    一个很简单的实现 https://github.com/linehk/go-forum
    ylsc633
        20
    ylsc633  
       2019-10-24 18:00:42 +08:00   ❤️ 1
    我博客就是用 gin 写的, 去年没事写的

    博客业务代码: https://github.com/izghua/go-blog

    底层封装了一个包,上面的包基于这个包来写的: https://github.com/izghua/zgh

    当然了,如果你想要 beego 版本的 我也有 https://github.com/xzghua/beego-postgres-blog

    再如果你想要 php 版本的 我也有 https://github.com/xzghua/laravel-5-myblog
    alfredhuo
        21
    alfredhuo  
    OP
       2019-10-24 20:52:16 +08:00
    @chuhemiao 已 star
    alfredhuo
        22
    alfredhuo  
    OP
       2019-10-24 20:53:15 +08:00
    @zohan 已 star
    alfredhuo
        23
    alfredhuo  
    OP
       2019-10-24 20:54:32 +08:00
    @sulinehk 已 star
    alfredhuo
        24
    alfredhuo  
    OP
       2019-10-24 20:55:05 +08:00
    @ylsc633 已 star
    alfredhuo
        25
    alfredhuo  
    OP
       2019-10-24 20:56:48 +08:00
    各位 V 友 ,我是想看一个你们写的或者你们推荐的比较好的 web 项目(实际项目),不是想找一个 web 框架,框架就用 gin😃
    alfredhuo
        26
    alfredhuo  
    OP
       2019-10-24 21:24:56 +08:00
    @ylsc633 你太狂了😂
    fiypig
        27
    fiypig  
       2019-10-24 21:32:36 +08:00
    马克
    skiy
        28
    skiy  
       2019-10-24 22:44:22 +08:00
    我收集的几个:

    基于 BeeGo 的::

    https://github.com/yuedun/metal (刚看了,还在持续更新)
    基于 beego 开发的博客,管理后台系统,包含功能:登录,用户管理,权限管理,多线程获取数据,定时任务,爬虫,markdown,七牛上传图片。

    https://github.com/mikezss/skl-go (也在更新中)
    skl api,企业级后台 API 开发平台。使用 beego 语言架构。开发平台内嵌了用户、用户组、机构、角色、权限、多语言、枚举、OA 引擎等功能模块。

    https://github.com/aveyuan/MySales (更新中)
    功能十分简单,客户,产品,销售,采用 Beego+Layui 开发

    https://github.com/TruthHun/DocHub (更新中)
    DocHubDocHub 文库系统,使用 Go 语言的 beego 框架开发的类百度文库系统,实现 office、PDF 等文档在线浏览。

    https://github.com/lifei6671/mindoc
    MinDoc 是一款针对 IT 团队开发的简单好用的文档管理系统。

    -------------------------------------------------------------------------------------------
    https://github.com/lyw1995/Angular5-Blog-Admin
    Angular5+ Ant Design 编写的简易版博客后台管理系统, Go Web 编写的服务端
    Go 语言编写的 Blog(博客)服务端
    https://github.com/lyw1995/Golang-Blog-Server
    预览地址: http://blog.yinguiw.com
    alfredhuo
        29
    alfredhuo  
    OP
       2019-10-24 23:28:48 +08:00
    @skiy thank you very much, guys 🌹
    Allianzcortex
        30
    Allianzcortex  
       2019-10-25 06:09:14 +08:00
    看到现在还没人推荐 real-world-example ? 纯后端 API 最佳实践: https://github.com/gothinkster/golang-gin-realworld-example-app 。btw 基本上任何前端后端框架学习都可以从这个项目里找到例子
    Allianzcortex
        31
    Allianzcortex  
       2019-10-25 06:11:33 +08:00
    @Allianzcortex 不行要学一下利益相关了:给这个大项目的后端 flask 提过两个 PR,前端 vue 提过一个 PR LOL
    magua
        32
    magua  
       2019-10-25 09:43:19 +08:00
    alfredhuo
        33
    alfredhuo  
    OP
       2019-10-25 10:08:35 +08:00
    @magua thank you
    alfredhuo
        34
    alfredhuo  
    OP
       2019-10-25 10:09:17 +08:00
    sikong31
        35
    sikong31  
       2019-10-25 10:29:47 +08:00
    youngxhui
        36
    youngxhui  
       2019-10-25 21:26:53 +08:00
    @cryingsky 感谢推荐我的项目。GinHello 适合新手学习 Gin 入门。🤣 。配套文章 : https://youngxhui.top/categories/gin/
    zohan
        37
    zohan  
       2019-10-27 15:33:13 +08:00
    @alfredhuo 我们这边就是深入使用了 gin 之后,对 gin 进行了深入的改造,最后发现改的太多了,最后就自己搞了😂
    alfredhuo
        38
    alfredhuo  
    OP
       2019-10-27 22:55:14 +08:00
    @youngxhui 谢谢
    alfredhuo
        39
    alfredhuo  
    OP
       2019-10-27 22:55:22 +08:00
    @zohan 谢谢
    joseph1994
        40
    joseph1994  
       2021-05-18 11:33:22 +08:00
    如果是想学前后端分离架构下的后端 REST API 开发,直接看 Docker 源码,现在叫做 Moby 项目,GitHub 上下载下来看就好了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3334 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 11:48 · PVG 19:48 · LAX 04:48 · JFK 07:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.