summaryrefslogtreecommitdiffhomepage
path: root/util/httpio/urlpath/urlpath.go
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/urlpath/urlpath.go
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/urlpath/urlpath.go')
-rw-r--r--util/httpio/urlpath/urlpath.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/util/httpio/urlpath/urlpath.go b/util/httpio/urlpath/urlpath.go
new file mode 100644
index 000000000..e6ae7f25a
--- /dev/null
+++ b/util/httpio/urlpath/urlpath.go
@@ -0,0 +1,10 @@
+// Package urpath TODO
+package urlpath
+
+// option is an option to alter behavior of Marshal and Unmarshal.
+// Currently, there are no defined options.
+type option interface{ option() }
+
+func Marshal(pattern string, val any, opts ...option) (path string, err error)
+
+func Unmarshal(pattern, path string, val any, opts ...option) (err error)