Skip to content

Commit

Permalink
Create main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
yilololo authored Nov 26, 2024
1 parent 36e256b commit c128b44
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package main

import (
"fmt"
"net/http"
)

func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "Hello, World!")
}

func main() {
http.HandleFunc("/", handler)
fmt.Println("Server running at http://localhost:8932")
http.ListenAndServe(":8932", nil)
}

0 comments on commit c128b44

Please sign in to comment.