Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Advantages:

Go compiles very quickly.
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.

Disadvantages:

The packages distributed with Go are pretty useful, but there are still some libraries you'll miss. Most notably a UI toolkit.
There is no support for generics in Go, although there are many discussions around it.

Other points of note that could be advantages or disadvantages:

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))

}



  • No labels