14 lines
207 B
Go
14 lines
207 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
func main() {
|
|
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
|
w.Write([]byte("Welcome to my website!"))
|
|
})
|
|
|
|
http.ListenAndServe(":8080", nil)
|
|
}
|