1 package entryjson 2 3 import ( 4 "regexp" 5 ) 6 7 // Filter filters the json field f from j. 8 func Filter(j, f string) string { 9 return regexp.MustCompile(`"`+f+`":[^,]+,`).ReplaceAllString(j, "") 10 } 11
View as plain text