created gitversion branch
This commit is contained in:
parent
a5a3cbe2b5
commit
1df0b80c1f
2 changed files with 24 additions and 0 deletions
20
src/main.go
Normal file
20
src/main.go
Normal 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
4
structs/structs.go
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
type Page struct {
|
||||||
|
Title string
|
||||||
|
Body []byte
|
||||||
|
}
|
Loading…
Reference in a new issue