Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image RemovedImage Added

Advantages:

Go compiles very quickly. ( like C++ or java )
Go supports concurrency at the language level.
Functions are first class objects in Go.
Go has garbage collection.
Strings and maps are built into the language.

...

Go compiles to machine code.
Go is very strongly typed.
Go is not object oriented in the traditional sense.


  package main


    import (
        "os/exec"
        "fmt"
    )

    func main() {

        cmd := exec.Command("C:\\path\\to\\python.exe", "C:\\Users\\me\\go\\test.py")
        output, err := cmd.Output()

        if (err != nil) {
            fmt.Println(err)
        }

        fmt.Println(string(output))

}