func NewDeveloper(request *http.Request) (Developer, error) {
	var developer Developer
	defer request.Body.Close()
	if body, err := ioutil.ReadAll(request.Body); err != nil {
		return developer, err
	} else if err = json.Unmarshal(body, &developer); err != nil {
		return developer, err
	}

	developer.Projects = []Project{}
	developer.Tasks = []Task{}
	developer.Created = time.Now().UTC().Format(time.RFC3339)
	developer.Touched = developer.Created

	return developer, nil
}
// NewDeveloper Create a new developer from an HTTP request
NewDeveloper Create a new developer from an HTTP request
// NewDeveloper Create a new developer from an HTTP request
func NewDeveloper(request *http.Request) (Developer, error) {
	var developer Developer
	defer request.Body.Close()
	if body, err := ioutil.ReadAll(request.Body); err != nil {
		return developer, err
	} else if err = json.Unmarshal(body, &developer); err != nil {
		return developer, err
	}
	developer.Projects = []Project{}
	developer.Tasks = []Task{}
	developer.Created = time.Now().UTC().Format(time.RFC3339)
	developer.Touched = developer.Created
	return developer, nil
}
func NewDeveloper ( request * http . Request ) ( Developer , error ) { var developer Developer defer request . Body . Close ( ) if body , err := ioutil . ReadAll ( request . Body ) ; err != nil { return developer , err } else if err = json . Unmarshal ( body , & developer ) ; err != nil { return developer , err } developer . Projects = [ ] Project { } developer . Tasks = [ ] Task { } developer . Created = time . Now ( ) . UTC ( ) . Format ( time . RFC3339 ) developer . Touched = developer . Created return developer , nil }
NewDeveloper Create a new developer from an HTTP request
NewDeveloper Create a new developer from an HTTP request