Advertisement
Guest User

Untitled

a guest
Jun 11th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.53 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4.     "net/http"
  5. )
  6.  
  7. func main() {
  8.     http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
  9.         w.Write([]byte("Hello GO!"))
  10.     })
  11.     http.ListenAndServe(":8000", nil)
  12. }
  13.  
  14. /*
  15. PS C:\Users\Janis\Programming\GoLang\src\github.com\jkrovnl\rkods> cd ..
  16. PS C:\Users\Janis\Programming\GoLang\src\github.com\jkrovnl> cd ../..
  17. PS C:\Users\Janis\Programming\GoLang\src> cd ..
  18. PS C:\Users\Janis\Programming\GoLang> cd bin
  19. PS C:\Users\Janis\Programming\GoLang\bin> rkods.exe
  20.  
  21.  
  22. ---->>>> http://localhost:8000/
  23. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement