// WithRootSHA256 will create the transport using an insecure client to retrieve
// the root certificate using its fingerprint. It will fail if a previous option
// to create the transport has been configured.
WithRootSHA256 will create the transport using an insecure client to retrieve
the root certificate using its fingerprint. It will fail if a previous option
to create the transport has been configured.
// WithRootSHA256 will create the transport using an insecure client to retrieve // the root certificate using its fingerprint . It will fail if a previous option // to create the transport has been configured .
func WithRootSHA256(sum string) ClientOption {
	return func(o *clientOptions) error {
		if err := o.checkTransport(); err != nil {
			return err
		}
		o.rootSHA256 = sum
		return nil
	}
}
func WithRootSHA256 ( sum string ) ClientOption { return func ( o * clientOptions ) error { if err := o . checkTransport ( ) ; err != nil { return err } o . rootSHA256 = sum return nil } }
WithRootSHA256 will create the transport using an insecure client to retrieve
the root certificate using its fingerprint.
WithRootSHA256 will create the transport using an insecure client to retrieve the root certificate using its fingerprint .