Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "net/http"
- )
- func main() {
- http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
- w.Write([]byte("Hello GO!"))
- })
- http.ListenAndServe(":8000", nil)
- }
- /*
- PS C:\Users\Janis\Programming\GoLang\src\github.com\jkrovnl\rkods> cd ..
- PS C:\Users\Janis\Programming\GoLang\src\github.com\jkrovnl> cd ../..
- PS C:\Users\Janis\Programming\GoLang\src> cd ..
- PS C:\Users\Janis\Programming\GoLang> cd bin
- PS C:\Users\Janis\Programming\GoLang\bin> rkods.exe
- ---->>>> http://localhost:8000/
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement