func (uc UserController) GetUser(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
	id := p.ByName("id")
	if !bson.IsObjectIdHex(id) {
		w.WriteHeader(404)
		return
	}
	oid := bson.ObjectIdHex(id)
	u := models.User{}
	if err := uc.session.DB("rest_example").C("users").FindId(oid).One(&u); err != nil {
		w.WriteHeader(404)
		return
	}
	uj, _ := json.Marshal(u)
	w.Header().Set("Content-Type", "application/json")
	w.WriteHeader(200)
	fmt.Fprintf(w, "%s", uj)
}
GetUser retrives an individual user resource
package controllers
import (
	"encoding/json"
	"fmt"
	"net/http"
	"server/helpers/logger"
	"server/helpers/upload"
	"server/models"
	"strings"
	mgo "gopkg.in/mgo.v2"
	"gopkg.in/mgo.v2/bson"
	"github.com/julienschmidt/httprouter"
)
type (
	UserController struct {
		session *mgo.Session
	}
)
func NewUserController(s *mgo.Session) *UserController {
	return &UserController{s}
}