summaryrefslogtreecommitdiffstats
path: root/go/README
diff options
context:
space:
mode:
Diffstat (limited to 'go/README')
-rw-r--r--go/README11
1 files changed, 10 insertions, 1 deletions
diff --git a/go/README b/go/README
index 0f9de490..0434335a 100644
--- a/go/README
+++ b/go/README
@@ -7,7 +7,16 @@ go - minimalistic uri shortener
npm install hiredis
# run service
- node .
+ PORT=1337 node .
+
+# add uri
+ curl -F uri=https://mywaytoolonguri http://localhost:1337
+
+ this will give you a relative shortened uri.
+
+# resolve uri
+
+ curl http://localhost:1337/shortened-relative-uri
# clear database