Skip to content

Commit 6048270

Browse files
committed
refactor: hide piring package
This package is very low-level and because of that it is not very reusable. Hide it. At least for now, until someone will ask for it. Less public API means less chance to introduce a breaking change.
1 parent 84d9266 commit 6048270

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed
File renamed without changes.

piring/piring_bench_test.go renamed to internal/piring/piring_bench_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package piring_test
66
import (
77
"testing"
88

9-
"github.com/elgopher/pi/piring"
9+
"github.com/elgopher/pi/internal/piring"
1010
)
1111

1212
func BenchmarkBuffer_NextWritePointer(b *testing.B) {

piring/piring_test.go renamed to internal/piring/piring_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ package piring_test
66
import (
77
"testing"
88

9+
"github.com/elgopher/pi/internal/piring"
910
"github.com/stretchr/testify/assert"
10-
11-
"github.com/elgopher/pi/piring"
1211
)
1312

1413
func TestBuffer(t *testing.T) {

piscope/internal/recorder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package internal
55

66
import (
77
"github.com/elgopher/pi"
8-
"github.com/elgopher/pi/piring"
8+
"github.com/elgopher/pi/internal/piring"
99
)
1010

1111
var theScreenRecorder = newScreenRecorder(128)

0 commit comments

Comments
 (0)