Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 6ca3494

Browse files
authored
Merge pull request #2 from Sunney-X/patch-1
style: grouped var
2 parents f9cf1ff + 1b9f4dc commit 6ca3494

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/main.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,14 @@ func decrypt(data []byte, p passphrase) decryptedData {
5959

6060
func main() {
6161
// flag vars
62-
var fileLocation string
63-
var password passphrase
64-
var encryptB = false
65-
var decryptB = false
66-
var mode string
67-
var force bool
62+
var (
63+
fileLocation string
64+
password passphrase
65+
encryptB = false
66+
decryptB = false
67+
mode string
68+
force bool
69+
)
6870

6971
// flags
7072
flag.StringVar(&fileLocation, "location", "./", "Location of the file")

0 commit comments

Comments
 (0)