Skip to content

Commit

Permalink
Move more top-level packages under pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
gcla committed Jul 9, 2022
1 parent 785fd48 commit a09eb2a
Show file tree
Hide file tree
Showing 92 changed files with 45 additions and 45 deletions.
12 changes: 6 additions & 6 deletions cmd/termshark/termshark.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ import (
"github.com/gcla/termshark/v2/pkg/capinfo"
"github.com/gcla/termshark/v2/cli"
"github.com/gcla/termshark/v2/configs/profiles"
"github.com/gcla/termshark/v2/convs"
"github.com/gcla/termshark/v2/pcap"
"github.com/gcla/termshark/v2/pkg/convs"
"github.com/gcla/termshark/v2/pkg/pcap"
"github.com/gcla/termshark/v2/pkg/summary"
"github.com/gcla/termshark/v2/shark"
"github.com/gcla/termshark/v2/streams"
"github.com/gcla/termshark/v2/system"
"github.com/gcla/termshark/v2/tty"
"github.com/gcla/termshark/v2/pkg/shark"
"github.com/gcla/termshark/v2/pkg/streams"
"github.com/gcla/termshark/v2/pkg/system"
"github.com/gcla/termshark/v2/pkg/tty"
"github.com/gcla/termshark/v2/ui"
"github.com/gcla/termshark/v2/widgets/filter"
"github.com/gcla/termshark/v2/widgets/wormhole"
Expand Down
2 changes: 1 addition & 1 deletion pkg/capinfo/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/gcla/gowid"
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/pcap"
"github.com/gcla/termshark/v2/pkg/pcap"
log "github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion convs/loader.go → pkg/convs/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/gcla/gowid"
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/pcap"
"github.com/gcla/termshark/v2/pkg/pcap"
log "github.com/sirupsen/logrus"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pcap/cmds.go → pkg/pcap/cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/configs/profiles"
"github.com/gcla/termshark/v2/pkg/summary"
"github.com/gcla/termshark/v2/shark"
"github.com/gcla/termshark/v2/pkg/shark"
"github.com/kballard/go-shellquote"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pcap/loader.go → pkg/pcap/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/gcla/gowid"
"github.com/gcla/gowid/gwutil"
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/format"
"github.com/gcla/termshark/v2/pkg/format"
lru "github.com/hashicorp/golang-lru"
log "github.com/sirupsen/logrus"
fsnotify "gopkg.in/fsnotify/fsnotify.v1"
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pcap/source.go → pkg/pcap/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os"
"strings"

"github.com/gcla/termshark/v2/system"
"github.com/gcla/termshark/v2/pkg/system"
)

//======================================================================
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion streams/loader.go → pkg/streams/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

"github.com/gcla/gowid"
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/pcap"
"github.com/gcla/termshark/v2/pkg/pcap"
log "github.com/sirupsen/logrus"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion ui/capinfoui.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/gcla/gowid"
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/pkg/capinfo"
"github.com/gcla/termshark/v2/pcap"
"github.com/gcla/termshark/v2/pkg/pcap"
log "github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion ui/convscallbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/gcla/gowid"
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/pcap"
"github.com/gcla/termshark/v2/pkg/pcap"
)

//======================================================================
Expand Down
6 changes: 3 additions & 3 deletions ui/convsui.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ import (
"github.com/gcla/gowid/widgets/vpadding"
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/configs/profiles"
"github.com/gcla/termshark/v2/convs"
"github.com/gcla/termshark/v2/pcap"
"github.com/gcla/termshark/v2/psmlmodel"
"github.com/gcla/termshark/v2/pkg/convs"
"github.com/gcla/termshark/v2/pkg/pcap"
"github.com/gcla/termshark/v2/pkg/psmlmodel"
"github.com/gcla/termshark/v2/ui/tableutil"
"github.com/gcla/termshark/v2/widgets/appkeys"
"github.com/gcla/termshark/v2/widgets/copymodetable"
Expand Down
2 changes: 1 addition & 1 deletion ui/lastline.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/gcla/gowid/vim"
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/configs/profiles"
"github.com/gcla/termshark/v2/theme"
"github.com/gcla/termshark/v2/pkg/theme"
"github.com/gcla/termshark/v2/widgets/mapkeys"
"github.com/gcla/termshark/v2/widgets/minibuffer"
"github.com/rakyll/statik/fs"
Expand Down
2 changes: 1 addition & 1 deletion ui/palette.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"

"github.com/gcla/gowid"
"github.com/gcla/termshark/v2/theme"
"github.com/gcla/termshark/v2/pkg/theme"
log "github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion ui/prochandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/gcla/gowid/widgets/table"
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/configs/profiles"
"github.com/gcla/termshark/v2/pcap"
"github.com/gcla/termshark/v2/pkg/pcap"
log "github.com/sirupsen/logrus"
)

Expand Down
4 changes: 2 additions & 2 deletions ui/psmlcols.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"github.com/gcla/gowid/widgets/table"
"github.com/gcla/gowid/widgets/text"
"github.com/gcla/termshark/v2/configs/profiles"
"github.com/gcla/termshark/v2/shark"
"github.com/gcla/termshark/v2/shark/wiresharkcfg"
"github.com/gcla/termshark/v2/pkg/shark"
"github.com/gcla/termshark/v2/pkg/shark/wiresharkcfg"
"github.com/gcla/termshark/v2/ui/menuutil"
"github.com/gdamore/tcell/v2"
log "github.com/sirupsen/logrus"
Expand Down
4 changes: 2 additions & 2 deletions ui/psmlcolsmodel.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"github.com/gcla/gowid/widgets/table"
"github.com/gcla/gowid/widgets/text"
"github.com/gcla/gowid/widgets/vpadding"
"github.com/gcla/termshark/v2/shark"
"github.com/gcla/termshark/v2/shark/wiresharkcfg"
"github.com/gcla/termshark/v2/pkg/shark"
"github.com/gcla/termshark/v2/pkg/shark/wiresharkcfg"
"github.com/gcla/termshark/v2/widgets/filter"
"github.com/gcla/termshark/v2/widgets/number"
log "github.com/sirupsen/logrus"
Expand Down
2 changes: 1 addition & 1 deletion ui/searchalg.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/gcla/gowid"
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/pcap"
"github.com/gcla/termshark/v2/pkg/pcap"
"github.com/gcla/termshark/v2/widgets/search"
)

Expand Down
4 changes: 2 additions & 2 deletions ui/searchbyfilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"github.com/gcla/gowid/widgets/table"
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/configs/profiles"
"github.com/gcla/termshark/v2/format"
"github.com/gcla/termshark/v2/pcap"
"github.com/gcla/termshark/v2/pkg/format"
"github.com/gcla/termshark/v2/pkg/pcap"
"github.com/gcla/termshark/v2/widgets/search"
log "github.com/sirupsen/logrus"
"gitlab.com/jonas.jasas/condchan"
Expand Down
2 changes: 1 addition & 1 deletion ui/searchpktbytes.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/gcla/gowid"
"github.com/gcla/gowid/widgets/table"
"github.com/gcla/termshark/v2/pcap"
"github.com/gcla/termshark/v2/pkg/pcap"
"github.com/gcla/termshark/v2/widgets/search"
)

Expand Down
2 changes: 1 addition & 1 deletion ui/searchpktstruct.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/gcla/gowid"
"github.com/gcla/gowid/widgets/table"
"github.com/gcla/gowid/widgets/tree"
"github.com/gcla/termshark/v2/pdmltree"
"github.com/gcla/termshark/v2/pkg/pdmltree"
"github.com/gcla/termshark/v2/widgets/search"
)

Expand Down
6 changes: 3 additions & 3 deletions ui/streamui.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"github.com/gcla/gowid/widgets/table"
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/configs/profiles"
"github.com/gcla/termshark/v2/pcap"
"github.com/gcla/termshark/v2/pdmltree"
"github.com/gcla/termshark/v2/streams"
"github.com/gcla/termshark/v2/pkg/pcap"
"github.com/gcla/termshark/v2/pkg/pdmltree"
"github.com/gcla/termshark/v2/pkg/streams"
"github.com/gcla/termshark/v2/widgets/appkeys"
"github.com/gcla/termshark/v2/widgets/streamwidget"
"github.com/gdamore/tcell/v2"
Expand Down
12 changes: 6 additions & 6 deletions ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ import (
"github.com/gcla/gowid/widgets/vpadding"
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/configs/profiles"
"github.com/gcla/termshark/v2/pcap"
"github.com/gcla/termshark/v2/pdmltree"
"github.com/gcla/termshark/v2/psmlmodel"
"github.com/gcla/termshark/v2/shark"
"github.com/gcla/termshark/v2/system"
"github.com/gcla/termshark/v2/theme"
"github.com/gcla/termshark/v2/pkg/pcap"
"github.com/gcla/termshark/v2/pkg/pdmltree"
"github.com/gcla/termshark/v2/pkg/psmlmodel"
"github.com/gcla/termshark/v2/pkg/system"
"github.com/gcla/termshark/v2/pkg/shark"
"github.com/gcla/termshark/v2/pkg/theme"
"github.com/gcla/termshark/v2/ui/menuutil"
"github.com/gcla/termshark/v2/ui/tableutil"
"github.com/gcla/termshark/v2/widgets"
Expand Down
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import (
"github.com/gcla/gowid/vim"
"github.com/gcla/gowid/widgets/table"
"github.com/gcla/termshark/v2/configs/profiles"
"github.com/gcla/termshark/v2/system"
"github.com/gcla/termshark/v2/pkg/system"
"github.com/gcla/termshark/v2/widgets/resizable"
"github.com/gdamore/tcell/v2"
"github.com/gdamore/tcell/v2/terminfo"
Expand Down
2 changes: 1 addition & 1 deletion utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"

"github.com/blang/semver"
"github.com/gcla/termshark/v2/format"
"github.com/gcla/termshark/v2/pkg/format"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion widgets/copymodetree/copymodetree.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/gcla/gowid/widgets/list"
"github.com/gcla/gowid/widgets/tree"
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/pdmltree"
"github.com/gcla/termshark/v2/pkg/pdmltree"
)

//======================================================================
Expand Down
2 changes: 1 addition & 1 deletion widgets/hexdumper/hexdumper.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/gcla/gowid/widgets/styled"
"github.com/gcla/gowid/widgets/text"
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/format"
"github.com/gcla/termshark/v2/pkg/format"
"github.com/gcla/termshark/v2/widgets/renderfocused"
"github.com/gdamore/tcell/v2"
"github.com/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion widgets/hexdumper2/hexdumper2.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/gcla/gowid/vim"
"github.com/gcla/gowid/widgets/list"
"github.com/gcla/gowid/widgets/styled"
"github.com/gcla/termshark/v2/format"
"github.com/gcla/termshark/v2/pkg/format"
"github.com/gdamore/tcell/v2"
)

Expand Down
4 changes: 2 additions & 2 deletions widgets/streamwidget/streamwidget.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ import (
"github.com/gcla/gowid/widgets/text"
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/configs/profiles"
"github.com/gcla/termshark/v2/format"
"github.com/gcla/termshark/v2/streams"
"github.com/gcla/termshark/v2/pkg/format"
"github.com/gcla/termshark/v2/pkg/streams"
"github.com/gcla/termshark/v2/ui/menuutil"
"github.com/gcla/termshark/v2/ui/tableutil"
"github.com/gcla/termshark/v2/widgets"
Expand Down

0 comments on commit a09eb2a

Please sign in to comment.