Go (or Golang) is a compiled language and comes with full featured library. It is like Python combined with C++.
Download Go and install.
Create a new file . e.g. test.go
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
)
func main() {
response, err := http.Get("http://google.com/")
if err != nil {
log.Fatal(err)
}
contents, err := ioutil.ReadAll(response.Body)
if err != nil {
log.Fatal(err)
}
fmt.Printf("%sn", string(contents))
}
Compile
go build test.go
The generated test.exe
is portable and can be use on any windows machine.