github.com/EngineerKamesh/gofullstack@v0.0.0-20180609171605-d41341d7d4ee/volume2/section3/gopherfaceform/handlers/profile.go (about)

     1  package handlers
     2  
     3  import (
     4  	"net/http"
     5  
     6  	"github.com/gorilla/mux"
     7  )
     8  
     9  func ProfileHandler(w http.ResponseWriter, r *http.Request) {
    10  
    11  	vars := mux.Vars(r)
    12  	username := vars["username"]
    13  	w.Write([]byte(username))
    14  }