Temporarily remove the to_json debugging func
This commit is contained in:
parent
3769ca727f
commit
2ec44d7415
@ -179,13 +179,13 @@ func (t TweetDetailData) FocusedTweetID() scraper.TweetID {
|
||||
return t.MainTweetID
|
||||
}
|
||||
|
||||
func to_json(t interface{}) string {
|
||||
js, err := json.Marshal(t)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return string(js)
|
||||
}
|
||||
// func to_json(t interface{}) string {
|
||||
// js, err := json.Marshal(t)
|
||||
// if err != nil {
|
||||
// panic(err)
|
||||
// }
|
||||
// return string(js)
|
||||
// }
|
||||
|
||||
func (app *Application) TweetDetail(w http.ResponseWriter, r *http.Request) {
|
||||
app.traceLog.Printf("'TweetDetail' handler (path: %q)", r.URL.Path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user