diff options
| author | Eyal Posener <[email protected]> | 2017-05-06 19:11:16 +0300 |
|---|---|---|
| committer | Eyal Posener <[email protected]> | 2017-05-06 19:11:16 +0300 |
| commit | 60345dc6db8d1247fef2fb456d2f18f3300651ac (patch) | |
| tree | 46e6aad0f9c1ff3e1867e75dcd9fd30dbc6842c7 | |
| parent | 07b98cb91243293e26564058a78f28b83aa81cd4 (diff) | |
fmt
| -rw-r--r-- | gocomplete/complete.go | 4 | ||||
| -rw-r--r-- | install/home.go | 4 | ||||
| -rw-r--r-- | install/root.go | 3 |
3 files changed, 5 insertions, 6 deletions
diff --git a/gocomplete/complete.go b/gocomplete/complete.go index 60a9835..159d79f 100644 --- a/gocomplete/complete.go +++ b/gocomplete/complete.go @@ -8,8 +8,8 @@ var ( predictEllipsis = complete.PredictSet("./...") goFilesOrPackages = complete.PredictFiles("**.go"). - Or(complete.PredictDirs("./")). - Or(predictEllipsis) + Or(complete.PredictDirs("./")). + Or(predictEllipsis) ) func main() { diff --git a/install/home.go b/install/home.go index 1850a05..825bdb7 100644 --- a/install/home.go +++ b/install/home.go @@ -5,10 +5,10 @@ import ( "errors" "fmt" "io" + "io/ioutil" "os" "os/user" "path/filepath" - "io/ioutil" ) type home struct{} @@ -150,4 +150,4 @@ func copyFile(src string, dst string) error { defer out.Close() _, err = io.Copy(out, in) return err -}
\ No newline at end of file +} diff --git a/install/root.go b/install/root.go index b128a0d..66e23b3 100644 --- a/install/root.go +++ b/install/root.go @@ -25,6 +25,5 @@ func (root) Uninstall(cmd string, bin string) error { } func getBashCompletionDLink(cmd string) string { - return "/etc/bash_completion.d/"+cmd + return "/etc/bash_completion.d/" + cmd } - |
