Skip to content

How to run expressions that use JSON tags? #731

Answered by antonmedv
star2478 asked this question in Q&A
Discussion options

You must be logged in to vote

You can use expr tags:

type UserModel struct {
	UserID    string `expr:"user_id"`
	Employee  int    `expr:"employee"`
	Mobile    string `expr:"mobile"`
	Email     string `expr:"email"`
}

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@star2478
Comment options

@antonmedv
Comment options

@star2478
Comment options

@antonmedv
Comment options

Answer selected by star2478
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants