diff --git a/cmd/humanlog/main.go b/cmd/humanlog/main.go index 8ef07955..fec97ff0 100644 --- a/cmd/humanlog/main.go +++ b/cmd/humanlog/main.go @@ -16,7 +16,7 @@ import ( "github.com/humanlogio/humanlog" "github.com/humanlogio/humanlog/internal/pkg/config" "github.com/humanlogio/humanlog/internal/pkg/state" - "github.com/humanlogio/humanlog/sink/stdiosink" + "github.com/humanlogio/humanlog/pkg/sink/stdiosink" "github.com/mattn/go-colorable" "github.com/urfave/cli" ) diff --git a/e2e_test.go b/e2e_test.go index 5a5a2cf0..072ac207 100644 --- a/e2e_test.go +++ b/e2e_test.go @@ -10,7 +10,7 @@ import ( "testing" "github.com/humanlogio/humanlog/internal/pkg/config" - "github.com/humanlogio/humanlog/sink/stdiosink" + "github.com/humanlogio/humanlog/pkg/sink/stdiosink" ) func TestHarness(t *testing.T) { diff --git a/sink/bufsink/sized.go b/pkg/sink/bufsink/sized.go similarity index 94% rename from sink/bufsink/sized.go rename to pkg/sink/bufsink/sized.go index 57463c62..8ac1ddad 100644 --- a/sink/bufsink/sized.go +++ b/pkg/sink/bufsink/sized.go @@ -4,7 +4,7 @@ import ( "context" "github.com/humanlogio/humanlog/internal/pkg/model" - "github.com/humanlogio/humanlog/sink" + "github.com/humanlogio/humanlog/pkg/sink" ) type SizedBuffer struct { diff --git a/sink/sink.go b/pkg/sink/sink.go similarity index 100% rename from sink/sink.go rename to pkg/sink/sink.go diff --git a/sink/stdiosink/colors.go b/pkg/sink/stdiosink/colors.go similarity index 100% rename from sink/stdiosink/colors.go rename to pkg/sink/stdiosink/colors.go diff --git a/sink/stdiosink/stdio.go b/pkg/sink/stdiosink/stdio.go similarity index 99% rename from sink/stdiosink/stdio.go rename to pkg/sink/stdiosink/stdio.go index 6931f094..4a4a63a4 100644 --- a/sink/stdiosink/stdio.go +++ b/pkg/sink/stdiosink/stdio.go @@ -13,7 +13,7 @@ import ( "github.com/fatih/color" "github.com/humanlogio/humanlog/internal/pkg/config" "github.com/humanlogio/humanlog/internal/pkg/model" - "github.com/humanlogio/humanlog/sink" + "github.com/humanlogio/humanlog/pkg/sink" ) var ( diff --git a/scanner.go b/scanner.go index 6431a4d3..09402cfd 100644 --- a/scanner.go +++ b/scanner.go @@ -8,7 +8,7 @@ import ( "time" "github.com/humanlogio/humanlog/internal/pkg/model" - "github.com/humanlogio/humanlog/sink" + "github.com/humanlogio/humanlog/pkg/sink" ) // Scan reads JSON-structured lines from src and prettify them onto dst. If diff --git a/scanner_test.go b/scanner_test.go index 06780317..075f77db 100644 --- a/scanner_test.go +++ b/scanner_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/humanlogio/humanlog/internal/pkg/model" - "github.com/humanlogio/humanlog/sink/bufsink" + "github.com/humanlogio/humanlog/pkg/sink/bufsink" "github.com/stretchr/testify/require" )