refactor: now utils is an internal package (#166)

Let us make internal everything because this is not a library.
This commit is contained in:
Simone Basso 2020-11-13 17:28:02 +01:00 committed by GitHub
parent a58dff3050
commit a4ae94b5ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 10 additions and 10 deletions

View File

@ -6,7 +6,7 @@ import (
ooni "github.com/ooni/probe-cli"
"github.com/ooni/probe-cli/internal/log/handlers/batch"
"github.com/ooni/probe-cli/internal/log/handlers/cli"
"github.com/ooni/probe-cli/utils"
"github.com/ooni/probe-cli/internal/utils"
"github.com/ooni/probe-cli/version"
)

View File

@ -7,7 +7,7 @@ import (
"github.com/apex/log"
"github.com/ooni/probe-cli/internal/crashreport"
"github.com/ooni/probe-cli/utils"
"github.com/ooni/probe-cli/internal/utils"
"github.com/pkg/errors"
)

View File

@ -12,7 +12,7 @@ import (
"github.com/apex/log"
"github.com/ooni/probe-cli/internal/enginex"
"github.com/ooni/probe-cli/utils"
"github.com/ooni/probe-cli/internal/utils"
"github.com/pkg/errors"
db "upper.io/db.v3"
"upper.io/db.v3/lib/sqlbuilder"

View File

@ -11,7 +11,7 @@ import (
"github.com/apex/log"
"github.com/fatih/color"
colorable "github.com/mattn/go-colorable"
"github.com/ooni/probe-cli/utils"
"github.com/ooni/probe-cli/internal/utils"
)
// Default handler outputting to stderr.

View File

@ -9,7 +9,7 @@ import (
"time"
"github.com/apex/log"
"github.com/ooni/probe-cli/utils"
"github.com/ooni/probe-cli/internal/utils"
)
func statusIcon(ok bool) string {

View File

@ -9,7 +9,7 @@ import (
"github.com/apex/log"
"github.com/ooni/probe-cli/internal/database"
"github.com/ooni/probe-cli/utils"
"github.com/ooni/probe-cli/internal/utils"
)
func formatSpeed(speed float64) string {

View File

@ -7,7 +7,7 @@ import (
ooni "github.com/ooni/probe-cli"
"github.com/ooni/probe-cli/internal/database"
"github.com/ooni/probe-cli/utils/shutil"
"github.com/ooni/probe-cli/internal/utils/shutil"
)
func newTestingContext(t *testing.T) *ooni.Context {

View File

@ -8,7 +8,7 @@ import (
"github.com/apex/log"
"github.com/ooni/probe-cli/internal/database"
"github.com/ooni/probe-cli/utils"
"github.com/ooni/probe-cli/internal/utils"
)
// MeasurementJSON prints the JSON of a measurement

View File

@ -7,7 +7,7 @@ import (
"path/filepath"
"time"
"github.com/ooni/probe-cli/utils/homedir"
"github.com/ooni/probe-cli/internal/utils/homedir"
)
// RequiredDirs returns the required ooni home directories

View File

@ -12,7 +12,7 @@ import (
"github.com/ooni/probe-cli/internal/config"
"github.com/ooni/probe-cli/internal/database"
"github.com/ooni/probe-cli/internal/enginex"
"github.com/ooni/probe-cli/utils"
"github.com/ooni/probe-cli/internal/utils"
engine "github.com/ooni/probe-engine"
"github.com/ooni/probe-engine/model"
"github.com/pkg/errors"