Skip to content

Commit 7cd823d

Browse files
committed
moved aliases to alias.go
These lines cause problem for `go fmt`
1 parent 38d291f commit 7cd823d

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

alias.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package main
2+
3+
import("github.com/dncohen/qpass/gohash_db")
4+
5+
// These lines are in their own file, because they cause problems for `go fmt`.
6+
7+
// State local alias
8+
type State = gohash_db.State
9+
10+
// LoginInfo local alias
11+
type LoginInfo = gohash_db.LoginInfo

commands.go

-7
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,12 @@ import (
1212
"time"
1313

1414
"github.com/dncohen/qpass/encryption"
15-
"github.com/dncohen/qpass/gohash_db"
1615

1716
"github.com/atotto/clipboard"
1817
"github.com/chzyer/readline"
1918
"golang.org/x/crypto/ssh/terminal"
2019
)
2120

22-
// State local alias
23-
type State = gohash_db.State
24-
25-
// LoginInfo local alias
26-
type LoginInfo = gohash_db.LoginInfo
27-
2821
type command interface {
2922
// run a command with the given state, within the given group.
3023
run(state *State, group string, args string, reader *bufio.Reader)

0 commit comments

Comments
 (0)