mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
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)
|
|
}
|