Building a Go REST API using Gorm and Fiber!
Video Statistics and Information
Channel: TutorialEdge
Views: 48,009
Rating: undefined out of 5
Keywords: programming, tutorials, coding tutorials, tutorialedge
Id: Iq2qT0fRhAA
Channel Id: undefined
Length: 26min 10sec (1570 seconds)
Published: Sat Apr 25 2020
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
I would suggest an App struct that holds pointers to fibre and database. That way, you can easily extend your application to support logging, form validator, etc. Make your handlers receive this app struct so you can avoid repitition such as database.DBConn everywhere.
For curl, you can use single quotes to enclose your data. That way, you don't need to escape double quotes in the json payload.
Great tutorial, thanks! What are the features you like in fiber?