func Parse(rawurl string) (*Resource, error) {
	u, err := url.Parse(rawurl)
	if err != nil {
		return nil, err
	}
	if u.Scheme == "" {
		parts := strings.SplitN(rawurl, "@", 2)
		if len(parts) != 2 {
			return nil, fmt.Errorf("URL must be absolute, or an email address: %v", rawurl)
		}
		return Parse("acct:" + rawurl)
	}
	r := Resource(*u)
	return &r, nil
}
Parse parses rawurl into a WebFinger Resource.  The rawurl should be an
absolute URL, or an email-like identifier (e.g. "bob@example.com").
package webfinger
import (
	"errors"
	"fmt"
	"io/ioutil"
	"log"
	"net/http"
	"net/url"
	"strings"
	"github.com/ant0ine/go-webfinger/jrd"
)
type Resource url.URL