1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-11 05:55:57 +00:00

URL Shortener using Iris and BoltDB example

Former-commit-id: 059f5fcd6c1df8df11ed2594ee3c1b1ccc13c7b0
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-03-14 14:54:04 +02:00
parent ac3abca684
commit 549c8eba10
5 changed files with 237 additions and 60 deletions

View File

@@ -9,12 +9,13 @@
<body>
<h2>Golang URL Shortener</h2>
<h3>{{ .form_result}}</h3>
<form action="/url/shorten" method="POST">
<form action="/shorten" method="POST">
<input type="text" name="url" style="width: 35em;" />
<input type="submit" value="Shorten!" />
</form>
<p>{{ .url_count }} URLs shortened</p>
{{ if isPositive .url_count }}
<p>{{ .url_count }} URLs shortened</p>
{{ end }}
</body>
</html>