Main.go
func main() {
bytearray=getbytearray()//getting an array of bytes
cmd := exec.Command("python3", "abc.py")
in:=cmd.Stdin
cmd.Run()
}
I want to send the byte array as input for the python script
abc.py
import sys
newFile.write(sys.stdin) //write the byte array got as input to the newfile
How do i send bytes from golang to python and save that into a file?