Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
gocode: move subpackages into internal subdirectory
Browse files Browse the repository at this point in the history
I'd like these APIs to eventually be generally usable, but today
they're not. Make them internal to prevent accidental use.
  • Loading branch information
mdempsky committed Jul 27, 2018
1 parent 2300d13 commit 1428475
Show file tree
Hide file tree
Showing 150 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (

"runtime/debug"

"github.com/mdempsky/gocode/gbimporter"
"github.com/mdempsky/gocode/suggest"
"github.com/mdempsky/gocode/internal/gbimporter"
"github.com/mdempsky/gocode/internal/suggest"
)

func doClient() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"sort"
"testing"

"github.com/mdempsky/gocode/lookdot"
"github.com/mdempsky/gocode/internal/lookdot"
)

const src = `
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/mdempsky/gocode/suggest"
"github.com/mdempsky/gocode/internal/suggest"
)

func TestFormatters(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion suggest/suggest.go → internal/suggest/suggest.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"path/filepath"
"strings"

"github.com/mdempsky/gocode/lookdot"
"github.com/mdempsky/gocode/internal/lookdot"
)

type Config struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"testing"

"github.com/mdempsky/gocode/suggest"
"github.com/mdempsky/gocode/internal/suggest"
)

func TestRegress(t *testing.T) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"runtime/debug"
"time"

"github.com/mdempsky/gocode/gbimporter"
"github.com/mdempsky/gocode/suggest"
"github.com/mdempsky/gocode/internal/gbimporter"
"github.com/mdempsky/gocode/internal/suggest"
)

func doServer() {
Expand Down

0 comments on commit 1428475

Please sign in to comment.