From 0dae469ccece91bde63e14e0ba508f99848dbddc Mon Sep 17 00:00:00 2001 From: Ava Affine Date: Thu, 5 Dec 2024 17:06:54 -0800 Subject: [PATCH] put docbuf into an external pkg Signed-off-by: Ava Affine --- .gitlab-ci.yml | 2 +- internal/state/state.go | 2 +- internal/state/state_test.go | 2 +- {internal => pkg}/docbuf/docbuf.go | 0 {internal => pkg}/docbuf/docbuf_test.go | 0 {internal => pkg}/docbuf/read_write_seek_string.go | 0 {internal => pkg}/docbuf/read_write_seek_string_test.go | 0 7 files changed, 3 insertions(+), 3 deletions(-) rename {internal => pkg}/docbuf/docbuf.go (100%) rename {internal => pkg}/docbuf/docbuf_test.go (100%) rename {internal => pkg}/docbuf/read_write_seek_string.go (100%) rename {internal => pkg}/docbuf/read_write_seek_string_test.go (100%) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3093957..e67ef81 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,4 +26,4 @@ tests-config-pkg: tests-docbuf-pkg: stage: test script: - - go test ./internal/docbuf + - go test ./pkg/docbuf diff --git a/internal/state/state.go b/internal/state/state.go index 1325546..9795fbd 100644 --- a/internal/state/state.go +++ b/internal/state/state.go @@ -15,7 +15,7 @@ import ( "errors" "encoding/json" - "gitlab.com/whom/bingobot/internal/docbuf" + "gitlab.com/whom/bingobot/pkg/docbuf" "gitlab.com/whom/bingobot/internal/logging" ) diff --git a/internal/state/state_test.go b/internal/state/state_test.go index e6d4073..20800f3 100644 --- a/internal/state/state_test.go +++ b/internal/state/state_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "gitlab.com/whom/bingobot/internal/docbuf" + "gitlab.com/whom/bingobot/pkg/docbuf" "gitlab.com/whom/bingobot/internal/logging" ) diff --git a/internal/docbuf/docbuf.go b/pkg/docbuf/docbuf.go similarity index 100% rename from internal/docbuf/docbuf.go rename to pkg/docbuf/docbuf.go diff --git a/internal/docbuf/docbuf_test.go b/pkg/docbuf/docbuf_test.go similarity index 100% rename from internal/docbuf/docbuf_test.go rename to pkg/docbuf/docbuf_test.go diff --git a/internal/docbuf/read_write_seek_string.go b/pkg/docbuf/read_write_seek_string.go similarity index 100% rename from internal/docbuf/read_write_seek_string.go rename to pkg/docbuf/read_write_seek_string.go diff --git a/internal/docbuf/read_write_seek_string_test.go b/pkg/docbuf/read_write_seek_string_test.go similarity index 100% rename from internal/docbuf/read_write_seek_string_test.go rename to pkg/docbuf/read_write_seek_string_test.go