code: func NewClientFromConfig(cfg *config.Config) (*Client, error) {
  	options, err := configToOptions(cfg)
  	if err != nil {
  		return nil, err
  	}
  	return DialContext(context.Background(), options...)
  }
docs: // NewClientFromConfig initializes a client from a configuration.