(custom_cert, cert_password, outFile string, Beacon_Com *Beacon_Com, Beacon_Stage_p1 *Beacon_Stage_p1, Beacon_Stage_p2 *Beacon_Stage_p2, Beacon_Stage_p3 *Beacon_Stage_p3, Process_Inject *Process_Inject, Beacon_PostEX *Beacon_PostEX, Beacon_GETPOST *Beacon_GETPOST, Beacon_GETPOST_Profile *Beacon_GETPOST_Profile, Beacon_SSL *Beacon_SSL)
| 562 | } |
| 563 | |
| 564 | func Build(custom_cert, cert_password, outFile string, Beacon_Com *Beacon_Com, Beacon_Stage_p1 *Beacon_Stage_p1, Beacon_Stage_p2 *Beacon_Stage_p2, Beacon_Stage_p3 *Beacon_Stage_p3, Process_Inject *Process_Inject, Beacon_PostEX *Beacon_PostEX, Beacon_GETPOST *Beacon_GETPOST, Beacon_GETPOST_Profile *Beacon_GETPOST_Profile, Beacon_SSL *Beacon_SSL) { |
| 565 | var buffer bytes.Buffer |
| 566 | Beacon_Com_Struct_Template, err := template.New("Beacon_Com").Parse(Struct.Beacon_Com_Struct()) |
| 567 | if err != nil { |
| 568 | log.Fatal(err) |
| 569 | |
| 570 | } |
| 571 | buffer.Reset() |
| 572 | if err := Beacon_Com_Struct_Template.Execute(&buffer, Beacon_Com); err != nil { |
| 573 | log.Fatal(err) |
| 574 | } |
| 575 | first := buffer.String() |
| 576 | buffer.Reset() |
| 577 | Beacon_Stage_Struct_p1_Template, err := template.New("Beacon_Stage_p1").Parse(Struct.Beacon_Stage_Struct_p1()) |
| 578 | if err != nil { |
| 579 | log.Fatal(err) |
| 580 | |
| 581 | } |
| 582 | buffer.Reset() |
| 583 | if err := Beacon_Stage_Struct_p1_Template.Execute(&buffer, Beacon_Stage_p1); err != nil { |
| 584 | log.Fatal(err) |
| 585 | } |
| 586 | second := buffer.String() |
| 587 | buffer.Reset() |
| 588 | Beacon_Stage_Struct_p2_Template, err := template.New("Beacon_Stage_p2").Parse(Struct.Beacon_Stage_p2_Stuct()) |
| 589 | if err != nil { |
| 590 | log.Fatal(err) |
| 591 | |
| 592 | } |
| 593 | buffer.Reset() |
| 594 | if err := Beacon_Stage_Struct_p2_Template.Execute(&buffer, Beacon_Stage_p2); err != nil { |
| 595 | log.Fatal(err) |
| 596 | } |
| 597 | third := buffer.String() |
| 598 | buffer.Reset() |
| 599 | |
| 600 | Beacon_Stage_Struct_p3_Template, err := template.New("Beacon_Stage_p3").Parse(Struct.Beacon_Stage_Struct_p3()) |
| 601 | if err != nil { |
| 602 | log.Fatal(err) |
| 603 | |
| 604 | } |
| 605 | buffer.Reset() |
| 606 | if err := Beacon_Stage_Struct_p3_Template.Execute(&buffer, Beacon_Stage_p3); err != nil { |
| 607 | log.Fatal(err) |
| 608 | } |
| 609 | fourth := buffer.String() |
| 610 | buffer.Reset() |
| 611 | |
| 612 | Process_Inject_Struct_Template, err := template.New("Process_Inject").Parse(Struct.Process_Inject_Struct()) |
| 613 | if err != nil { |
| 614 | log.Fatal(err) |
| 615 | |
| 616 | } |
| 617 | buffer.Reset() |
| 618 | if err := Process_Inject_Struct_Template.Execute(&buffer, Process_Inject); err != nil { |
| 619 | log.Fatal(err) |
| 620 | } |
| 621 | fifth := buffer.String() |
no test coverage detected