INNER CODE UNIT · Go
GetRows
cryptag/cryptag · servers/inmemory-webserver/main.go:35
func GetRows(w http.ResponseWriter, req *http.Request) {
_ = req.ParseForm()
tags := req.Form["tags"]
if len(tags) == 0 {
log.Printf("All %d Rows retrieved:\n%s", len(allRows), allRows)
help.WriteJSON(w, allRows)
return
}
tags = strings.Split(tags[0], ",")
if types.Debug {
log.Printf("tags: `%+v`\n", tags)
}
rows := allRows.WithAllRandomTags(tags)
if types.Debug {