Skip to content

Commit

Permalink
serve stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Crilly committed Apr 25, 2016
1 parent ea51338 commit 05c4460
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions main.go
Expand Up @@ -2,12 +2,14 @@ package main

import (
"fmt"
"net/http"
)

func M(n int) int {
return n * n
func index(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "Hello, world!\n\n")
}

func main() {
fmt.Println("Nothing to see here.")
http.HandleFunc("/", index)
http.ListenAndServe("0.0.0.0:8080", nil)
}
2 changes: 1 addition & 1 deletion main_test.go
Expand Up @@ -4,6 +4,6 @@ import (
"testing"
)

func TestM(t *testing.T) {
func TestNothing(t *testing.T) {
return
}

0 comments on commit 05c4460

Please sign in to comment.