summaryrefslogtreecommitdiffhomepage
path: root/util/httpio/urlquery
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2024-01-11 15:23:52 -0800
committerJoe Tsai <joetsai@digital-static.net>2024-01-11 15:30:43 -0800
commit2e20bd2ffe2098877ad44d5eed93a1820956d1e9 (patch)
tree7472ed2a5ca5442b870a03ea41d8fd4b835a4154 /util/httpio/urlquery
parentb89c11336514d541ad25de564dcf0561c0b24e58 (diff)
downloadtailscale-dsnet/httpio.tar.xz
tailscale-dsnet/httpio.zip
util/httpio: prototype design for handling I/O in HTTPdsnet/httpio
Signed-off-by: Joe Tsai <joetsai@digital-static.net>
Diffstat (limited to 'util/httpio/urlquery')
-rw-r--r--util/httpio/urlquery/urlquery.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/util/httpio/urlquery/urlquery.go b/util/httpio/urlquery/urlquery.go
new file mode 100644
index 000000000..94a46455e
--- /dev/null
+++ b/util/httpio/urlquery/urlquery.go
@@ -0,0 +1,10 @@
+// Package urlquery TODO
+package urlquery
+
+// option is an option to alter behavior of Marshal and Unmarshal.
+// Currently, there are no defined options.
+type option interface{ option() }
+
+func Marshal(val any, opts ...option) (query string, err error)
+
+func Unmarshal(query string, val any, opts ...option) (err error)