Guest User

Untitled

a guest
Feb 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. http.HandleFunc("/appauth/code", func(w http.ResponseWriter, r *http.Request) {
  2. err := r.ParseForm() //*1
  3. if err != nil {
  4. log.Panic(err)
  5. }
  6.  
  7. code := r.Form.Get("code")
  8.  
  9. w.Write([]byte("<html><body>")) *2
  10.  
  11. err := w.Write([]byte("<html><body>"))
  12.  
  13. w.Write([]byte("<html><body>") (int, error) ) <- the Write seems to return an int and error?
Add Comment
Please, Sign In to add comment