The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
AntonChen

Fiber 还是 Hertz

  •  
  •   AntonChen ·
    antonchen · Dec 31, 2024 · 4440 views
    This topic created in 678 days ago, the information mentioned may be changed or developed.

    Golang 初学者,哪个框架更适合?

    主要写些自用的东西。一般都是 API ,还有管理后台。

    大佬们有何建议?

    14 replies  •  2025-02-11 10:39:03 +08:00
    realpg
    realpg
    Dec 31, 2024
    1
    Api server
    我推荐 gin
    fxjson
    fxjson
    Dec 31, 2024
    2
    gin 吧,用 gin 做了一个开箱即用框架,欢迎各位大佬指正 https://github.com/fanqingxuan/go-gin
    Belmode
    Belmode
    Dec 31, 2024
    3
    Gin!Gin!Gin! GO 界的 express !
    liaohongxing
    liaohongxing
    Dec 31, 2024 via Android❤️2
    4
    fiber 吧,gin 不是 return err 类型框架,好像也没有全局错误处理
    czyt
    czyt
    Jan 1, 2025
    5
    kratos
    zhyt1985
    zhyt1985
    Jan 1, 2025
    6
    GoFrame ,开箱即用,组件丰富
    DefoliationM
    DefoliationM
    Jan 1, 2025
    7
    net/http 一把梭,现在 net/http 路由什么的都很完善了,还有 slog ,没必要第三方了,第三方框架哪个都有用着不爽的地方。
    southwolf
    southwolf
    Jan 1, 2025 via Android
    8
    @DefoliationM +1 基本功能 net/http 够了,顶多配个 ent/sqlx/gorm 之类的 ORM, 当然为了学框架的话可以随便找个看看 revel echo gin zero chi 一大堆...
    rust
    rust
    Jan 1, 2025
    9
    GoFiber 吧,反正都对 Sonic 提供支持
    iceheart
    iceheart
    Jan 2, 2025 via Android
    10
    go-zero?
    Kauruus
    Kauruus
    Jan 2, 2025
    11
    初学先用标准库,然后再用兼容标准库的“框架”,如 chi 。
    fxjson
    fxjson
    Jan 19, 2025
    12
    go api 框架都差不多,gin,echo,fiber 模式一样,推荐 gin ,我封装的一个开箱即用框架 https://github.com/fanqingxuan/go-gin 可以看下
    Ayanokouji
    Ayanokouji
    Feb 1, 2025
    13
    个人推荐 echo
    另外 gin 好用在哪里呀,bind 难用,也没有 error handler
    qloog
    qloog
    Feb 11, 2025
    14
    适合自己的就是最好的,我用: https://github.com/go-eagle/eagle 基于 gin 的扩展版
    提供了脚手架和常用的功能封装
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1017 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 18:43 · PVG 02:43 · LAX 10:43 · JFK 13:43
    ♥ Do have faith in what you're doing.