16 lines
No EOL
238 B
Go
Executable file
16 lines
No EOL
238 B
Go
Executable file
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
"net/http"
|
|
)
|
|
|
|
func root(w http.ResponseWriter, r *http.Request){
|
|
fmt.Fprint(w, "Root site")
|
|
}
|
|
|
|
func main() {
|
|
http.HandleFunc("/", root)
|
|
log.Fatal(http.ListenAndServe(":8080", nil))
|
|
} |