First commit
This commit is contained in:
commit
d556efa15b
16
main.go
Normal file
16
main.go
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"net/http"
|
||||||
|
)
|
||||||
|
|
||||||
|
func handlerFunc(w http.ResponseWriter, r *http.Request) {
|
||||||
|
fmt.Fprint(w, "<h1>Welcome to my awesome site!</h1>")
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
http.HandleFunc("/", handlerFunc)
|
||||||
|
fmt.Println("Starting the server on :3000...")
|
||||||
|
http.ListenAndServe(":3000", nil)
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user