How to test fiber params

I need to write a test for one of the handlers. Inside the handler I have somethings like: ctx.Params("id") Is it possible to create a context so that inside the handler Params are not nil? I tried to change the Params field using ctx.Route().Params, but it didn’t work >Solution : I think it’s better to… Read More How to test fiber params

Golang Struct for Nested Objects

I am currently creating a golang api using GoFiber V2. I have the following document structure for a music track in a Mongo database: { "_id" : ObjectId("63cc26cb86ae1611380e1206"), "active" : 1, "exclusive" : "false", "track_title" : "Burn Slow (sting)", "artist_id" : "395", "artist_name" : "David Hollandsworth", "album_title" : "Cult Justice 23", "composer" : "David Hollandsworth",… Read More Golang Struct for Nested Objects