created gitversion branch

This commit is contained in:
Paul Wilde 2021-08-15 20:57:30 +01:00
parent a5a3cbe2b5
commit 1df0b80c1f
2 changed files with 24 additions and 0 deletions

20
src/main.go Normal file
View file

@ -0,0 +1,20 @@
package main
import (
"fmt"
"net/http"
"log"
)
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hi there, I love %s!", r.URL.Path[1:])
}
func main() {
http.HandleFunc("/", handler)
log.Fatal(http.ListenAndServe(":8080", nil))
}
func do_this(){
fmt.Println("doing this")
}

4
structs/structs.go Normal file
View file

@ -0,0 +1,4 @@
type Page struct {
Title string
Body []byte
}