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
|
return t.MainTweetID
|
||||||
}
|
}
|
||||||
|
|
||||||
func to_json(t interface{}) string {
|
// func to_json(t interface{}) string {
|
||||||
js, err := json.Marshal(t)
|
// js, err := json.Marshal(t)
|
||||||
if err != nil {
|
// if err != nil {
|
||||||
panic(err)
|
// panic(err)
|
||||||
}
|
// }
|
||||||
return string(js)
|
// return string(js)
|
||||||
}
|
// }
|
||||||
|
|
||||||
func (app *Application) TweetDetail(w http.ResponseWriter, r *http.Request) {
|
func (app *Application) TweetDetail(w http.ResponseWriter, r *http.Request) {
|
||||||
app.traceLog.Printf("'TweetDetail' handler (path: %q)", r.URL.Path)
|
app.traceLog.Printf("'TweetDetail' handler (path: %q)", r.URL.Path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user