Golang, Go, Software Development, Microservices, Networking.
from the previous version. Here, we are instantiating a struct called http.Client and configuring properties on it. One of the properties is Timeout which specifies the time.Duration type. Because duration is not a native Go type (int32, int64), we need to convert the integer to duration by