15 lines
248 B
Go
15 lines
248 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
func main() {
|
|
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
|
fmt.Fprint(w, "hello from ghaymah ci go")
|
|
})
|
|
fmt.Println("listening on :8080")
|
|
http.ListenAndServe(":8080", nil)
|
|
}
|