Go's url package in TypeScript


Help us add more

Got a rainy Sunday afternoon and a taste for a porting puzzle?

We will then review it. If it's useful to the project and in line with our contributing guidelines your work will become part of Locutus and you'll be automatically credited in the authors section accordingly.

Upstream Surface Inventory 8/28 shipped • 8 next 29%

Namespace-level inventory for Go 1.23: what we already ship, what we may still want, and what we intentionally skip or keep.

net/url package

Go 1.23 · Catalog source: live runtime snapshot golang:1.23:net/url

50% shipped
8/16 shipped 8 next 12 explicit non-goals
url
Shipped (8)

Next

Escaping helpers have a clean plain-value contract.

  • EscapedFragment
  • EscapedPath

URL host decomposition is a useful plain-value helper.

  • Hostname
  • Port

URL absolute checks have a clean plain-value contract.

  • IsAbs

Request-URI parsing is a useful plain-value helper.

  • ParseRequestURI

URL escaping is a strong plain-value target.

  • PathUnescape

Request-URI formatting is a useful plain-value helper.

  • RequestURI
Explicit non-goals (12)
  • Add Skip Much of net/url revolves around mutable URL and Values objects rather than plain values.
  • Del Skip Much of net/url revolves around mutable URL and Values objects rather than plain values.
  • Get Skip Much of net/url revolves around mutable URL and Values objects rather than plain values.
  • Has Skip Much of net/url revolves around mutable URL and Values objects rather than plain values.
  • MarshalBinary Skip Much of net/url revolves around mutable URL and Values objects rather than plain values.
  • Query Skip Much of net/url revolves around mutable URL and Values objects rather than plain values.
  • Redacted Skip Much of net/url revolves around mutable URL and Values objects rather than plain values.
  • Set Skip Much of net/url revolves around mutable URL and Values objects rather than plain values.
  • String Skip Much of net/url revolves around mutable URL and Values objects rather than plain values.
  • UnmarshalBinary Skip Much of net/url revolves around mutable URL and Values objects rather than plain values.
  • User Skip Much of net/url revolves around mutable URL and Values objects rather than plain values.
  • UserPassword Skip Much of net/url revolves around mutable URL and Values objects rather than plain values.

« More Go functions