(w http.ResponseWriter, r *http.Request)
| 850 | } |
| 851 | |
| 852 | func (s *Server) searchText(w http.ResponseWriter, r *http.Request) { |
| 853 | q := r.URL.Query().Get("q") |
| 854 | matches, err := s.currentVault().SearchText(q) |
| 855 | if err != nil { |
| 856 | writeError(w, err) |
| 857 | return |
| 858 | } |
| 859 | writeJSON(w, http.StatusOK, matches) |
| 860 | } |
| 861 | |
| 862 | // --- Demo tour --- |
| 863 |
nothing calls this directly
no test coverage detected