([func]{1,} \([a-z]{2} \*)
Note: just change {2} to whatever length your var is.
func (hw *HelloWorld) DoSomething() {
}
[\:]{1}[\s]*[a-z]{2}\.
Note: just change {2} to whatever length your var is.
map[string]interface{}{"key": ab.Value}
(gorm:"column:)([\w; ])+([\"]{1}[ ])
x string `gorm:"column:X" ...`
(query:")([\w,])+([\"]{1}[ ]{0,1})
(json:")([\w,])+([\"]{1}[ ]{0,1})
etc.
[\w* ]+[`json:]+[^"(\w)]
For the following Go code:
Username string `json:"user_name"`
The regex would yield
"user_name"