GoLang - Receiving and validating data on API (query, path & body params)

Опубликовано: 04 Апрель 2026
на канале: HunCoding
1,772
141

Hey guys

With the api video, now it's cool to know the ways to receive data in our API and better than that, validate the information so we always know how to filter only what we expect within our code. We learned to receive data via parameters in the URL, via query and via body.

Chapters:
00:00 Introduction
01:00 Configuring our API
03:00 Path params
05:00 Query params
07:30 Body params
15:00 Validating parameters

Important links:
https://github.com/go-playground/vali...
https://github.com/gin-gonic/gin

All the code is being saved on the channel's GitHub, so if you want to replicate it on your PC, just go there to get the code!
https://github.com/HunCoding

Any questions, you can send it in the comments and we'll talk and try to solve this doubt!

Thanks!