WindomZ/urljsonify

Hello My Friend

axetroy opened this issue · 1 comments

友情客窜 :)

interface Query$ {
  [key: string]: string;
}

interface UrlJson$ {
  protocol: string;
  slashes: string;
  auth: string;
  username: string;
  password: string;
  host: string;
  hostname: string;
  port: number;
  pathname: string;
  hash: string;
  href: string;
  origin: string;
  query: Query$;
}

export default function urljsonify(url: string):UrlJson$ {
  // your code
}

参考: https://www.npmjs.com/package/url-parse

这是很棒的参考,之前也有留意。我需要一个go的实现 :)