pkg/net: add Path{E,Une}sape and Query{E,Une}scape
Add the following four functions to the `net` package:
* PathEscape
* PathUnescape
* QueryEscape
* QueryUnescape
These are identical to Go's functions in `net/url`.
In fact, the documentation has been copied from them.
Fixes #1699.
Closes #1695 as merged as of commit 001f5ccb.
Signed-off-by: Jason Felice <jason.m.felice@gmail.com>
Change-Id: I467e9e0e7f1bdf5a33f29838a920bb7caa46027c
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/552890
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com>
authored by