func format(a *annotate.Annotation, w http.ResponseWriter, epochFmt bool) (e error) { if epochFmt { e = json.NewEncoder(w).Encode(a.AsEpochAnnotation()) } else { e = json.NewEncoder(w).Encode(a) } return }