Go版本1.12中的“ http.Client”和“&http.Client”有什么区别

I'm creating a http request by 'net/http', the official document use &http.Client{}, but I try to delete & can run normally.

client := &http.Client{}
client := http.Client{}

What is the difference between two way? The best practices is?

The best practices is?

The best practice is to learn the fundamental concept of the language. Here values and pointers. A starting point is https://tour.golang.org/moretypes/1 (or better the whole Tour).

It is of little value to memorize whether to use &http.Client{} or http.Client{}.

And if in doubt: Just peek at the standard library, e.g. with go doc -src net/http.DefaultClient.