Andrews Medina, Software Engineer da Globo.com fala sobre Software as a service usando Go como principal linguagem: os cases globo.com no InterCon 2016.
Saiba mais em http://intercon2016.imasters.com.br/
iMastersjornalista, web editor, web writer, tradutora (en-pt/pt-en) at iMasters
28. http + encoding
type user struct {
Name string
}
func userHandler (w http.ResponseWriter, r *http.Request) {
u := user{Name: “andrews”}
b, err := json.Marshal(u)
if err != nil {
panic(err)
}
w.Write(b)
}