#NEWLINE# def create_go_cmd( self , cmd , gopath = None , args = None ) : #NEWLINE# #INDENT# "Creates a Go command that is optionally targeted to a Go workspace.\n\n    :param string cmd: Go command to execute, e.g. 'test' for `go test`\n    :param string gopath: An optional $GOPATH which points to a valid Go workspace from which to run\n                          the command.\n    :param list args: A list of arguments and flags to pass to the Go command.\n    :returns: A go command that can be executed later.\n    :rtype: :class:`GoDistribution.GoCommand`\n    " #NEWLINE# return self . GoCommand . _create ( self . goroot , cmd , gopath = gopath , args = args )