Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http.HandleFunc("/appauth/code", func(w http.ResponseWriter, r *http.Request) {
- err := r.ParseForm() //*1
- if err != nil {
- log.Panic(err)
- }
- code := r.Form.Get("code")
- w.Write([]byte("<html><body>")) *2
- err := w.Write([]byte("<html><body>"))
- w.Write([]byte("<html><body>") (int, error) ) <- the Write seems to return an int and error?
Add Comment
Please, Sign In to add comment