Go custom struct validation – the idiomatic way

Within the earlier weblog, we had gone over struct validations in golang utilizing validator library. Persevering with on, on this weblog, we’ll cowl customized validations. To illustrate for the beneath struct: sort Config struct { ServerUrl string AppPort int } Enter fullscreen mode Exit fullscreen mode We might validate our struct with validations offered by […]