SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
InterCon 2016 - Software as a service usando Go como principal linguagem: os cases globo.com
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/
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/
27.
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)
}