go-tagexpr
An interesting go struct tag expression syntax for field validation, etc. (by bytedance)
expr
Expression language and expression evaluation for Go (by antonmedv)
Our great sponsors
go-tagexpr | expr | |
---|---|---|
3 | 20 | |
1,458 | 3,773 | |
2.1% | - | |
7.4 | 0.0 | |
29 days ago | 16 days 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.
-
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.
- Polymode: Multiple Major Modes and How to Use SQL and Python in One Buffer
-
Suggestion for a dynamic Struct Validation Rules
https://github.com/antonmedv/expr/ Seems really promising though having a rough time finding examples or basic do something as simple as struct.Value == N though I did find some examples on iterating and such.
-
Looking for programming languages created with Go
https://github.com/antonmedv/expr for embedded expressions.
-
Change go code behaviour at runtime
I think a number of people use the expr expression language, but I don't know how much functionality it has and how much you need. https://github.com/antonmedv/expr
- Expr - an expression evaluation language for Go
- How can I make a program that resolves equations? I thought that I have to get every monomial into a array but I don't know how to decide the equation. Can someone help me?
-
Choosing scripting extension - need advice
We use https://github.com/antonmedv/expr at some other place for similar case, but there rules are bit simpler and this library seem to suit ideally for such simple "one line" conditions.
What are some alternatives?
When comparing go-tagexpr and expr you can also consider the following projects:
govaluate - Arbitrary expression evaluation for golang
cel-go - Fast, portable, non-Turing complete expression evaluation with gradual typing (Go)
gval - Expression evaluation in golang
tengo - A fast script language for Go
grule-rule-engine - Rule engine implementation in Golang
mosalat - a rule-engine with custom dsl for golang
go-lua - A Lua VM in Go
otto - A JavaScript interpreter in Go (golang)
goja - ECMAScript/JavaScript engine in pure Go
The uGO Language - Script Language for Go
gopher-lua - GopherLua: VM and compiler for Lua in Go
Gentee script programming language - Gentee - script programming language for automation. It uses VM and compiler written in Go (Golang).