You should be able to use the os/exec package (https://pkg.go.dev/os/exec) to invoke external programs from Go.
On Wed, Aug 3, 2022 at 5:45 AM PK <princek...@gmail.com> wrote: > Hi everyone, > I am new to golang. I was writing a script, with which I want to run a > java program. > Can anyone please let me know how to run java file using go scripts. > > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/4c63befc-3532-4ab0-b2a3-fb61f4d3b51an%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/4c63befc-3532-4ab0-b2a3-fb61f4d3b51an%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAF-Rda_ZQtL51bEc8bN%2B8UnOjACWwaCn7r%2Bmhp1BpPK_6y6fOw%40mail.gmail.com.