You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: not_go110.go
    path of file: ./repos/gitkube/vendor/cloud.google.com/go/storage
    
    the code of the file until where you have to start completion: // Copyright 2017 Google LLC
//
// Licensed under the Apache License, Version 2.0 (th
    
func shouldRetry(err error) bool {
	switch e := err.(type) {
	case *googleapi.Error:
		// Retry on 429 and 5xx, according to
		// https://cloud.google.com/storage/docs/exponential-backoff.
		return e.Code == 429 || (e.Code >= 500 && e.Code < 600)
	case *url.Error:
		// Retry on REFUSED_STREAM.
		// Unfortunately the error type is unexported, so we resort to string
		// matching.
		return strings.Contains(e.Error(), "REFUSED_STREAM")
	case interface{ Temporary() bool }:
		return e.Temporary()
	default:
		return false
	}
}