gitlab.com/Raven-IO/raven-delve@v1.22.4/_fixtures/switch_to_main_goroutine.star (about)

     1  def command_switch_to_main_goroutine(args):
     2  	for g in goroutines().Goroutines:
     3  		if g.CurrentLoc.Function != None and g.CurrentLoc.Function.Name_.startswith("main."):
     4  			print("switching to:", g.ID)
     5  			raw_command("switchGoroutine", GoroutineID=g.ID)
     6  			break