func (ipc IPC) Send(event string, data interface{}) {
	ipc.sendChannel <- payload{Event: event, Data: data}
}
Send data to parent process
package ipc
import (
	"bufio"
	"bytes"
	"encoding/json"
	"fmt"
	"log"
	"os"
	"strings"
	"sync"
	"time"
)
type IPC struct {
	sendChannel           chan payload
	receiveListerners     map[string][]Handler
	receiveSendListerners map[string][]HandlerWithReply
}
var (
	rLock  sync.Mutex
	rRLock sync.Mutex
)
type payload struct {
	Event string `json:"event"`
	Data  interface{} `json:"data"`
	Error interface{} `json:"error"`
	SR    bool        `json:"SR"`  
	RS    bool        `json:"RC"`  
}
type Handler func(data interface{})
type HandlerWithReply func(replyChannel string, data interface{})
type payloadReceive struct {
	Event string      `json:"event"`
	Data  interface{} `json:"data"`
	SR    bool        `json:"SR"`  
}