Guest User

Untitled

a guest
May 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.42 KB | None | 0 0
  1. package main
  2. import ( "fmt")
  3.  
  4. func executePlugin(name string) {
  5. //  time.Sleep(int64(1))
  6.     //code for executing the scripts using Command
  7.    
  8.     fmt.Println("Now it is ending ",name)
  9.     }
  10. func main() {
  11.     var i int=1
  12.     var plugin_path ,plugin_name string =" "," "  //path to run scripts
  13.     for ;i<4;i++ {
  14.     fmt.Println("Starting",i)
  15.     go executePlugin(plugin_path + plugin_name)
  16.     fmt.Println("Here u are",i)
  17.  
  18.     }
  19. }
Add Comment
Please, Sign In to add comment