PracowniaProgramowania/backend/serverTest.go

16 lines
222 B
Go
Raw Normal View History

2018-11-14 00:19:38 +01:00
package main
import (
"fmt"
"net/http"
)
func helloWorld(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello World")
}
func main() {
http.HandleFunc("/", helloWorld)
http.ListenAndServe(":8080", nil)
}