go-tagexpr
An interesting go struct tag expression syntax for field validation, etc. (by bytedance)
expr
Expression language and expression evaluation for Go [Moved to: https://github.com/expr-lang/expr] (by antonmedv)
Our great sponsors
go-tagexpr | expr | |
---|---|---|
3 | 24 | |
1,622 | 4,802 | |
1.5% | - | |
5.6 | 0.0 | |
about 2 months ago | 5 months ago | |
Go | Go | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go-tagexpr
Posts with mentions or reviews of go-tagexpr.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-17.
-
Web Development JWT Practices
Hertz uses the open-source library go-tagexpr for parameter binding and validation, which the current demo uses for user registration and login.
-
High Performance Web Framework Tasting-Database Operations
You may refer to here for more information about parameter validation syntax.
The go-tagexpr open source library is used for parameter binding and validation of the Field annotation, as shown in the following example for CreateUserRequest:
expr
Posts with mentions or reviews of expr.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-17.
-
Solving the Expression Problem in Go
Not diminishing the article at all, there's massive value I've gained from leveraging this runtime solution in multiple projects: https://github.com/antonmedv/expr
The language is easy enough for people to pick-up.
- Expr Release v1.15
- Expr v1.14 release: Go expression language
- Expr – expression language with type checker
-
FireScroll - The config database to deploy everywhere (now with conditional statements!)
Uses the [expr](https://github.com/antonmedv/expr) language to achieve this and I've been super happy with the results.
-
Library to analyze an arbitrary JSON string
I have been using expr (https://github.com/antonmedv/expr) to do something like this for a while. no complains so far.
-
[gcalc] A simple calculater in golang
If you wanted it to not require putting in the operation first and just accept string equations (without using something like https://github.com/antonmedv/expr) you could parse, tokenize and then process the input.
- Go Expression Language
- Polymode: Multiple Major Modes and How to Use SQL and Python in One Buffer
- Expr (Go expression language) releases v1.11
What are some alternatives?
When comparing go-tagexpr and expr you can also consider the following projects:
userdemo - A simple demo using Hertz.
govaluate - Arbitrary expression evaluation for golang
gzip - gzip for hertz
cel-go - Fast, portable, non-Turing complete expression evaluation with gradual typing (Go)
hertz-examples - Examples for Hertz.
gval - Expression evaluation in golang
vk-gen - Code generation to create a Go binding for the Vulkan graphics API.
grule-rule-engine - Rule engine implementation in Golang
jwt - JWT middleware for Hertz
tengo - A fast script language for Go
GORM - The fantastic ORM library for Golang, aims to be developer friendly
mosalat - a rule-engine with custom dsl for golang