Move to github.com/tkw1536/pkglib package

This commit removes various modules that can be migrated to the
github.com/tkw1536/pkglib package without any code changes (beyond
module renamings).
This commit is contained in:
Tom Wiesing 2023-02-26 09:53:25 +01:00
parent 30c25b8e2a
commit c3ca8e2974
No known key found for this signature in database
65 changed files with 103 additions and 1254 deletions

View file

@ -5,8 +5,8 @@ import (
"fmt"
"io"
"github.com/FAU-CDI/wisski-distillery/pkg/countwriter"
"github.com/FAU-CDI/wisski-distillery/pkg/pools"
"github.com/tkw1536/pkglib/pools"
"github.com/tkw1536/pkglib/sequence"
)
func (snapshot Snapshot) String() string {
@ -19,7 +19,7 @@ func (snapshot Snapshot) String() string {
// Report writes a report from snapshot into w
func (snapshot Snapshot) Report(w io.Writer) (int, error) {
ww := countwriter.NewCountWriter(w)
ww := &sequence.Writer{Writer: w}
encoder := json.NewEncoder(ww)
encoder.SetIndent("", " ")
@ -74,7 +74,7 @@ func (backup Backup) String() string {
// Report formats a report for this backup, and writes it into Writer.
func (backup Backup) Report(w io.Writer) (int, error) {
cw := countwriter.NewCountWriter(w)
cw := &sequence.Writer{Writer: w}
encoder := json.NewEncoder(cw)
encoder.SetIndent("", " ")