Closed deepch closed 7 years ago
@deepch do you need a Log()
method in GO that would execute console.log()
in JS ? Is that it ?
yes
will do
@deepch I've added a GO window.Log(message string) error
method. Here's what you need to do in order to use it:
astilectron
's version has been bumped, you need to reinstall the bundler. In order to do that do the following:$ cd $GOPATH/src/github.com/asticode/go-astilectron-bundler
$ make
$ cd <your project path>
$ go get -u ./...
w.Log("my log message")
Does that fix your problem and can we close this issue?
is console.log redirect to stdout or stderr?
console.log
should redirect to stdout
I suggest adding console.log() output stdout and stderr from golang if this would be possible then debugging would be easier.
In my case, I have a problem in the finished package but I do not have it go run *.go and without writing processing I will not understand where it is, if it was part of astilectron options.