I built a http.Client for HTTP2 connection, what do I need to do to release the client and resource used?
The CloseIdleConnections() method was added in Go 1.12.
https://golang.org/pkg/net/http/#Client.CloseIdleConnections
CloseIdleConnections closes any connections on its Transport which were previously connected from previous requests but are now sitting idle in a "keep-alive" state. It does not interrupt any connections currently in use.