(s string)
| 302 | } |
| 303 | |
| 304 | func valuesFromString(s string) []quad.Value { |
| 305 | if s == "" { |
| 306 | return nil |
| 307 | } |
| 308 | arr := strings.Split(s, ",") |
| 309 | out := make([]quad.Value, 0, len(arr)) |
| 310 | for _, s := range arr { |
| 311 | out = append(out, quad.StringToValue(s)) |
| 312 | } |
| 313 | return out |
| 314 | } |
| 315 | |
| 316 | func (api *APIv2) ServeRead(w http.ResponseWriter, r *http.Request) { |
| 317 | format := getFormat(r, "format", hdrAccept) |