I'm studying Go and started a small web application.
Amazing. But I've already got the very basics.
So, what do you think would be a good documentation source for Go web application for real?
For example, now I have 15 methods that get "http.ResponseWriter" and etc as parameter (tons of repetition I mean).
I guess there's a better way of doing that.
But I don't want to start programming Go with the exact mindset (solutions) of other languages (Python, Ruby, Perl etc).
Not because it's wrong but because it can be (I don't know, that's the point) a mistake.
Here's an example:
func newStudentHandler(w http.ResponseWriter, r *http.Request) {
p := studentPage{Title:"New Student"}
t, _ := template.ParseFiles("new_student.html")
t.Execute(w, p)
}
func newTeacherHandler(w http.ResponseWriter, r *http.Request) {
p := teacherPage{Title:"New Teacher"}
t, _ := template.ParseFiles("new_teacher.html")
t.Execute(w, p)
}
func newClassHandler(w http.ResponseWriter, r *http.Request) {
p := classPage{Title:"New Class"}
t, _ := template.ParseFiles("new_class.html")
t.Execute(w, p)
}
[]s Gio