code: func (u *URL) UnmarshalJSON(input []byte) error {
  	var textURL string
  	err := json.Unmarshal(input, &textURL)
  	if err != nil {
  		return err
  	}
  	url, err := parseURL(textURL)
  	if err != nil {
  		return err
  	}
  	u.Scheme = url.Scheme
  	u.Path = url.Path
  	return nil
  }
docs: // UnmarshalJSON parses url.