Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 1e9d2c75 authored by Qadzif Kamil Zahari's avatar Qadzif Kamil Zahari
Browse files

feat: Create main file

parents
No related branches found
No related tags found
No related merge requests found
main.go 0 → 100644
package main
import (
"fmt"
"log"
"net/http"
)
func homePage(w http.ResponseWriter, r *http.Request){
fmt.Fprintf(w, "Welcome to the HomePage!")
fmt.Println("Endpoint Hit: homePage")
}
func handleRequests() {
http.HandleFunc("/", homePage)
log.Fatal(http.ListenAndServe(":10000", nil))
}
func main() {
handleRequests()
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment