Giter Club home page Giter Club logo

Comments (3)

asaskevich avatar asaskevich commented on July 17, 2024 1

Yes, it works not only with strings, package already has basic support of structures validation. I think that package should to have various functions for validating integers, arrays, maps etc, like func InRange(num, l, r int) bool or anything like func IsString(v interface{}) bool. Also, it will not be superfluous, to have functions for working with arrays like Any(f predicate), Filter(f predicate), Map, Count, All, etc where predicate is func (item interface{}) bool.

It's just some features planned for the next releases. But if you have ideas or patches - you are welcome 😄

from govalidator.

sebest avatar sebest commented on July 17, 2024

Good to know!

thanx

from govalidator.

oryband avatar oryband commented on July 17, 2024

@asaskevich maybe we should reopen this until this issue is fixed.
I just wasted an hour not knowing that TagMap validation functions don't work on nested int types in structs.

from govalidator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.