Golang Microservices: Validations

Published: 29 October 2021
on channel: Mario Carrion
7,170
107

How do you validate inputs in Go/Golang? What are some of the guidelines when validating? Should we use struct tags or concrete methods to Validate?

In this video I share with you with thoughts regarding validation using ozzo-validation and go

== Relevant Links

"Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving": https://github.com/go-playground/vali...
"An idiomatic Go (golang) validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags." https://github.com/go-ozzo/ozzo-valid...

Example code: https://github.com/MarioCarrion/todo-...
Previous Episode: "Golang Microservices: Pagination using Elasticsearch":    • Golang Microservices: Pagination usin...  

== All Go/Golang video series covered

Playlist "Building Microservices in Go/Golang":    • Building Microservices in Golang/Go  
Playlist "Software Architecture in Go/Golang":    • Software Architecture and System Desi...  
Playlist "Learning Go/Golang":    • Learning Go/Golang  
Playlist "Learning Go/Golang Concurrency Patterns"    • Learning Go/Golang Concurrency Patterns  
Playlist "Go/Golang Tools and Packages":    • Golang/Go Tools and Packages  
Playlist "Testing in Go/Golang":    • Testing in Golang/Go  

00:00 - Start
02:46 - Demo Validations in Microservices using Go/Golang
12:30 - Conclusion of Validations using Go/Golang

---

Who am I:

Hello👋🏼! I'm Mario, a Hands-on Software Architect and Lead Backend Engineer with more than 16 years of professional experience building all kinds of software including on-premise Industrial Automation Systems, Linux Accessibility Desktop and Browser Components as well as Distributed Advertising Microservices.

Every week I will share with you different topics I've learned while working for small startups and large companies including the processes I've followed over the years for successfully delivering complex enterprise systems from start to end.

Subscribe if you like Software Development, Software Architecture and Systems Design!

Keep it up. Don't give up!

#golang #security #softwarearchitecture

--- Our affiliate links below

Shop our Amazon favorites → https://www.amazon.com/shop/rubycarrion
Shop my IG feed on my LIKEtoKNOWit (LTK) page → https://www.liketoknow.it/RubyCarrion
Shop Top Deals and Featured Offers at Best Buy → https://bestbuy.7tiv.net/c/2558226/68...
Get a 30 day FREE Trial of Epidemic Sound → https://www.epidemicsound.com/referra...
Try Amazon Prime 30-day FREE Trial → https://amzn.to/3yf9a0f
I love getting Cash Back and think you will too! Join for FREE and get $30 when you spend $30 → https://www.rakuten.com/r/RUBYRA132?e...

--- Our Vlog Channel

   / rubycarrion  


Watch video Golang Microservices: Validations online without registration, duration hours minute second in high quality. This video was added by user Mario Carrion 29 October 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 7,170 once and liked it 107 people.