func init() { exe, err := certimporter.Asset("certimporter.exe") if err != nil { panic(fmt.Errorf("Unable to get certimporter.exe: %s", err)) } cebe, err = byteexec.New(exe, "certimporter") if err != nil { panic(fmt.Errorf("Unable to construct executable from memory: %s", err)) } }
func certImporter() (be *byteexec.ByteExec, err error) { exe, err := certimporter.Asset("certimporter.exe") if err != nil { return nil, fmt.Errorf("Unable to get certimporter.exe: %s", err) } be, err = byteexec.NewByteExec(exe) if err != nil { return nil, fmt.Errorf("Unable to construct executable from memory: %s", err) } return be, nil }