storage:  nil out everying in Client.Close
This will cause a panic if the client is used after
Close is called, which is a reasonable way to call
attention to the programming bug.
Fixes
@@ -110,7 +110,10 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error
//
// Close need not be called at program exit.
func (c *Client) Close() error {
+ // Set fields to nil so that subsequent uses
+ // will panic.
c.hc = nil
+ c.raw = nil
return nil
}
