func Ipmid(args []string) { argc := C.int(len(args)) argv := make([]*C.char, argc) for i, arg := range args { argv[i] = C.CString(arg) } C.ipmi_sim_main(argc, &argv[0]) }
func main() { argc := C.int(len(os.Args)) argv := make([]*C.char, argc) for i, arg := range os.Args { argv[i] = C.CString(arg) } C.ipmi_sim_main(argc, &argv[0]) }