Initial commit
j3s j3s@c3f.net
Tue, 09 Jun 2020 21:55:18 -0500
4 files changed,
27 insertions(+),
0 deletions(-)
A
main.go
@@ -0,0 +1,9 @@
+package main + +import ( + "fmt" +) + +func main(){ + fmt.Println("Hello, world!") +}
A
templates/confirmation.html
@@ -0,0 +1,2 @@
+<h1>Confirmation</h1> +<p>Your message has been sent!</p>
A
templates/form.html
@@ -0,0 +1,14 @@
+<h1>Contact</h1> +<form action="/" method="POST" novalidate> + <div> + <p><label>Your email:</label></p> + <p><input type="email" name="email"></p> + </div> + <div> + <p><label>Your message:</label></p> + <p><textarea name="content"></textarea></p> + </div> + <div> + <input type="submit" value="Send message"> + </div> +</form>