style: go fmt
This commit is contained in:
		
							parent
							
								
									c4170d3955
								
							
						
					
					
						commit
						8b15eadd15
					
				| @ -27,15 +27,17 @@ import ( | |||||||
| 	"github.com/VKCOM/php-parser/pkg/visitor/traverser" | 	"github.com/VKCOM/php-parser/pkg/visitor/traverser" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| var wg sync.WaitGroup | var ( | ||||||
| var phpVersion *version.Version | 	wg             sync.WaitGroup | ||||||
| var profiler string | 	phpVersion     *version.Version | ||||||
| var dump *bool | 	profiler       string | ||||||
| var showResolvedNs *bool | 	dump           *bool | ||||||
| var printBack *bool | 	showResolvedNs *bool | ||||||
| var printPath *bool | 	printBack      *bool | ||||||
| var printErrors *bool | 	printPath      *bool | ||||||
| var printExecTime *bool | 	printErrors    *bool | ||||||
|  | 	printExecTime  *bool | ||||||
|  | ) | ||||||
| 
 | 
 | ||||||
| type file struct { | type file struct { | ||||||
| 	path    string | 	path    string | ||||||
| @ -79,9 +81,11 @@ func main() { | |||||||
| 	case "cpu": | 	case "cpu": | ||||||
| 		defer profile.Start(profile.ProfilePath("."), profile.NoShutdownHook).Stop() | 		defer profile.Start(profile.ProfilePath("."), profile.NoShutdownHook).Stop() | ||||||
| 	case "mem": | 	case "mem": | ||||||
| 		defer profile.Start(profile.MemProfile, profile.ProfilePath("."), profile.NoShutdownHook).Stop() | 		defer profile.Start(profile.MemProfile, profile.ProfilePath("."), profile.NoShutdownHook). | ||||||
|  | 			Stop() | ||||||
| 	case "trace": | 	case "trace": | ||||||
| 		defer profile.Start(profile.TraceProfile, profile.ProfilePath("."), profile.NoShutdownHook).Stop() | 		defer profile.Start(profile.TraceProfile, profile.ProfilePath("."), profile.NoShutdownHook). | ||||||
|  | 			Stop() | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	numCpu := runtime.GOMAXPROCS(0) | 	numCpu := runtime.GOMAXPROCS(0) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user