From 8b15eadd158d2a07625767e5ffbe4a70d546cd27 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Sat, 25 Mar 2023 15:15:30 +0100 Subject: [PATCH] style: go fmt --- cmd/php-parser/main.go | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/cmd/php-parser/main.go b/cmd/php-parser/main.go index c406bdb..fb51b0b 100644 --- a/cmd/php-parser/main.go +++ b/cmd/php-parser/main.go @@ -27,15 +27,17 @@ import ( "github.com/VKCOM/php-parser/pkg/visitor/traverser" ) -var wg sync.WaitGroup -var phpVersion *version.Version -var profiler string -var dump *bool -var showResolvedNs *bool -var printBack *bool -var printPath *bool -var printErrors *bool -var printExecTime *bool +var ( + wg sync.WaitGroup + phpVersion *version.Version + profiler string + dump *bool + showResolvedNs *bool + printBack *bool + printPath *bool + printErrors *bool + printExecTime *bool +) type file struct { path string @@ -79,9 +81,11 @@ func main() { case "cpu": defer profile.Start(profile.ProfilePath("."), profile.NoShutdownHook).Stop() case "mem": - defer profile.Start(profile.MemProfile, profile.ProfilePath("."), profile.NoShutdownHook).Stop() + defer profile.Start(profile.MemProfile, profile.ProfilePath("."), profile.NoShutdownHook). + Stop() 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)