- This library is used to communicate with other services by http
Please make sure to initialize a Go module before installing core-go/client:
go get -u github.com/core-go/client
Import:
import "github.com/core-go/client"
- Initialize client for http
- Initialize client for https
Support to turn on, turn off
- request
- response
- duration
- http response status code
- response content length
- Do not need to re-compile the service, user can switch client from http to https
- Do not need to re-compile the service, user can turn on, turn off the log (request, response, duration, response content length...)