func (r *Resource) IsRemote() bool {
	return r.url.Scheme != ""
}
Returns true if the Resource is streamed over http/https.
package asset
import (
	"fmt"
	"io"
	"io/ioutil"
	"net/http"
	"net/url"
	"os"
	"path/filepath"
	"strings"
)
type Resource struct {
	io.ReadCloser
	url *url.URL
}
func (r *Resource) Path() string {
	return r.url.String()
}
func (r *Resource) RemotePath() string {
	if r.IsRemote() {
		return filepath.Base(r.url.Path)
	}
	return r.Path()
}