// NewClient : this function will always be called when the library is in use
NewClient : this function will always be called when the library is in use
// NewClient : this function will always be called when the library is in use
func NewClient() Client {
	logOption := LogOption{
		Format:          "text",
		Level:           "info",
		TimestampFormat: "2006-01-02T15:04:05-0700",
		CallerToggle:    false,
	}
	httpOption := HTTPOption{
		Timeout:           10 * time.Second,
		BackoffInterval:   2 * time.Millisecond,
		MaxJitterInterval: 5 * time.Millisecond,
		RetryCount:        3,
	}
	logger := *NewLogger(logOption)
	return Client{
		LogLevel:   2,
		Logger:     logger,
		HTTPOption: httpOption,
	}
}
func NewClient ( ) Client { logOption := LogOption { Format : " " , Level : " " , TimestampFormat : " " , CallerToggle : false , } httpOption := HTTPOption { Timeout : 10 * time . Second , BackoffInterval : 2 * time . Millisecond , MaxJitterInterval : 5 * time . Millisecond , RetryCount : 3 , } logger := * NewLogger ( logOption ) return Client { LogLevel : 2 , Logger : logger , HTTPOption : httpOption , } }
NewClient : this function will always be called when the library is in use
NewClient : this function will always be called when the library is in use
// default HTTP Option // LogLevel is the logging level used by the BNI library // 0: No logging // 1: Errors only // 2: Errors + informational (default) // 3: Errors + informational + debug