daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Jun 11th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top