mirror of
https://github.com/SourceFellows/gobuch.git
synced 2024-10-22 13:57:13 +00:00
17 lines
236 B
Go
17 lines
236 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"net/http"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
func greet(w http.ResponseWriter, r *http.Request) {
|
||
|
fmt.Fprintf(w, "Hello World! %s", time.Now())
|
||
|
}
|
||
|
|
||
|
func main() {
|
||
|
http.HandleFunc("/", greet)
|
||
|
http.ListenAndServe(":8080", nil)
|
||
|
}
|