From 1ddac2e26d1ba82db920688ca6054a54be0a9af7 Mon Sep 17 00:00:00 2001 From: Oleg Yamnikov Date: Fri, 3 Feb 2017 21:58:58 +0500 Subject: [PATCH] Apply gofmt to util.go --- util.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util.go b/util.go index f58a6f9..ad29c5e 100644 --- a/util.go +++ b/util.go @@ -8,9 +8,9 @@ import ( ) var ( - EnvVarRegexp = regexp.MustCompile(`\$(\w+)`) - UrlSchemaRegexp = regexp.MustCompile(`^\w+://`) - HttpUrlSchemaRegexp = regexp.MustCompile(`^(\w+\.)+(\w+)(/.*)?$`) + EnvVarRegexp = regexp.MustCompile(`\$(\w+)`) + UrlSchemaRegexp = regexp.MustCompile(`^\w+://`) + HttpUrlSchemaRegexp = regexp.MustCompile(`^(\w+\.)+(\w+)(/.*)?$`) CmdlineComponentRegexp = regexp.MustCompile(`(?:([^'"\s]+)|'([^']+)'|"([^"]+)")`) ) @@ -61,7 +61,7 @@ func SplitCommandline(cmdline string) []string { components := []string{} matches := CmdlineComponentRegexp.FindAllStringSubmatch(cmdline, -1) - for _, match := range matches{ + for _, match := range matches { fstNonEmptyGrp := match[0] for _, g := range match[1:] { if g != "" {