From ed1df49af5bb616e5ec34585b20c9c93a96b8088 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 7 Oct 2015 22:58:22 +0200 Subject: Run go fmt --- gocryptfs_main/masterkey.go | 11 +++++------ gocryptfs_main/sendsig.go | 6 +++--- 2 files changed, 8 insertions(+), 9 deletions(-) (limited to 'gocryptfs_main') diff --git a/gocryptfs_main/masterkey.go b/gocryptfs_main/masterkey.go index 205f2ab..69f268c 100644 --- a/gocryptfs_main/masterkey.go +++ b/gocryptfs_main/masterkey.go @@ -1,14 +1,13 @@ package main import ( - "os" - "fmt" "encoding/hex" - "strings" + "fmt" "github.com/rfjakob/gocryptfs/cryptfs" + "os" + "strings" ) - // printMasterKey - remind the user that he should store the master key in // a safe place func printMasterKey(key []byte) { @@ -16,8 +15,8 @@ func printMasterKey(key []byte) { var hChunked string // Try to make it less scary by splitting it up in chunks - for i := 0; i < len(h); i+=8 { - hChunked += h[i:i+8] + for i := 0; i < len(h); i += 8 { + hChunked += h[i : i+8] if i < 52 { hChunked += "-" } diff --git a/gocryptfs_main/sendsig.go b/gocryptfs_main/sendsig.go index 98bd448..d0e1cbb 100644 --- a/gocryptfs_main/sendsig.go +++ b/gocryptfs_main/sendsig.go @@ -1,16 +1,16 @@ package main import ( - "syscall" "bytes" "fmt" - "os" "io/ioutil" + "os" + "syscall" ) // cmdline looks like this: /bin/bash \0 /path/to/gocryptfs \0 --zerokey \0 ... const ( - WRAPPER_PREFIX = "/bin/bash\000" + WRAPPER_PREFIX = "/bin/bash\000" WRAPPER_CONTAINS = "gocryptfs\000" ) -- cgit v1.2.3