12

Really want to try building web apps with golang. Should i use some framework or not?

Comments
  • 0
    Aye, use node and express 😜

    Jk, I’ve still not seen go take off like it was heralded to. The answer is still yes btw, I just don’t know any personally.
  • 2
    @jamescodesthing haha, i need my web apps to run concurrency
  • 0
    The default package does not provide the best features
    Using a framework is the way to Go

    Try gin, gonic, they are the most recommended ones by the community
  • 1
    @byte did you mean gin gonic? or gin and gonic? because i cant find gonic but gin gonic
  • 1
    @harrizsb I meant gin gonic
    There are others like martini, Iris, gorilla
    if you wanna have a look and compare
    Take a look at gorilla, its nice for starters
  • 0
    @byte gorilla made me confuse, i dont know how to start with it lol. Btw how about echo?
  • 1
    Haven't used it personally, can't say anything about it
    Gorilla is the easiest from my perspective, you can find many examples online and the docs are pretty good (can be better)
    I'll still recommend that, for help you can contact me
  • 0
    @byte thanks man appreciate that, i may contact you later
  • 0
    @byte after first try gorilla and compare it to gin i have to say gin much faster than gorilla even gin enabled middleware by default. But i'm still digging for both
  • 1
    Still totally depends am what your webapp needs to do. For something that needs to serve a few files and an endpoint or two I find a framework overkill. Getting more complex a framework will help offload common tasks and usually results in better architecture
  • 0
    @hjk101 so, what framework do you prefer?
  • 0
    @harrizsb started out with using some gorilla components (was the only thing around for what I needed back then) now I check https://nordicapis.com/7-frameworks...

    Before I start. Don't do much in go unfortunately so I have to relearn a lot anyway and fortunately the learning curve of go frameworks is considerably less than in other languages I program in.
Add Comment