So today i gonna show you how to create RestApi With mux in Go. So let`s do it..
PRACTICE
First step u should to import package like a picture, u should to download package mux with go get -u github.com/gorilla/mux
So next create function main and then create code for the CRUD
if u done, create 5 function for handler CRUD
So next create struct Book and Author Struct for CRUD data
TESTING
i use POSTMAN for the testing this API
So here we go, Finally! Hope your enjoy it.
Top comments (0)