Trouble in migrating to golang version 112

Hi,

My site went offline and I am having trouble migrating my site to golang version 112.

How do I migrate this code from “appengine/urlfetch” to “net/http”.

func myHandler(w http.ResponseWriter, r *http.Request) {

some code…

}

// code that doesn’t work below

// Get URL request
ctx := appengine.NewContext( r )
client := urlfetch.Client(ctx)

Many thanks :smiley:

What do you mean by “code not works”?

Do you get errors during compilation or during runtime?

What version of your dependencies are you using? And why 1.12? 1.15 is out…

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.