Brijesh's Git Server — k3yst0n3 @ 56a7cea38a1ff614b00ca8cd80f67686f955709b

main.go (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
package main

import (
	"fmt"
	"net/http"
)

func main() {
	http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
		fmt.Fprintf(w, "Hello, World!")
	})

	fmt.Println("Server is running on port 4000")
	http.ListenAndServe(":4000", nil)
}