Advertisement
rasyid03

main.go

Nov 30th, 2023
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4. "fmt"
  5. "log"
  6. "net/http"
  7. )
  8.  
  9. func main() {
  10. PORT := 9065
  11. http.Handle("/", http.FileServer(http.Dir("polymer")))
  12. fmt.Printf("Server Running on Port %d", PORT)
  13. log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", PORT), nil))
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement