Advertisement
Uhuuuyy

main.go

Jan 18th, 2024
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.26 KB | Source Code | 0 0
  1. package main
  2.  
  3. import (
  4.     "fmt"
  5.     "log"
  6.     "net/http"
  7. )
  8.  
  9. func main() {
  10.     port := 9029
  11.  
  12.     http.Handle("/", http.FileServer(http.Dir("polymer")))
  13.     fmt.Printf("Starting server on port %d", port)
  14.     log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", port), nil))
  15. }
Tags: Inter6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement