go-helpers

A small collection of various helpers we use in our Go projects (forms, settings, structure conversions, ...) (by kiprotect)

Go-helpers Alternatives

Similar projects and alternatives to go-helpers

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better go-helpers alternative or higher similarity.

go-helpers reviews and mentions

Posts with mentions or reviews of go-helpers. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-09-10.
  • JSON Schema bundling finally formalised
    9 projects | news.ycombinator.com | 10 Sep 2021
    ```

    The "IsInteger" validator can of course be interpreted as a type, the important thing is though that it can be customized using type parameters and that we can add any number of additional validators that do advanced things (e.g. we could define an "IsPrime" validator that checks for primality of the number).

    I find this more elegant than having both a "type" field and various extensions for validations that you need to remember. The validator list mechanism also makes it easy to chain validations and perform sub-validations for lists or maps. I have an open-source implementation of this written in Golang [1] that I use in all my projects. It enables me to write a form specification and a Go struct and validate as well as coerce unstructured data into the struct. It makes it very easy to validate complex, hierarchical documents like configuration files as well, is easy to extend and provides nice errors.

    1: https://github.com/kiprotect/go-helpers/tree/master/forms

Stats

Basic go-helpers repo stats
1
5
5.6
8 months ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com