refactor: move multibase to its own subpackage

This commit is contained in:
Derrick Hammer 2024-01-03 04:43:34 -05:00
parent c44c11d264
commit 834c964892
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
package cid
package multibase
import (
"errors"
@ -30,7 +30,7 @@ type Multibase interface {
var _ Multibase = (*multibaseImpl)(nil)
func NewMultibase(encoder Encoder) Multibase {
func New(encoder Encoder) Multibase {
return &multibaseImpl{encoder: encoder}
}

View File

@ -1,4 +1,4 @@
package cid
package multibase
import (
"git.lumeweb.com/LumeWeb/libs5-go/internal/testdata"
@ -17,7 +17,7 @@ func (e *encoder) ToBytes() []byte {
func newEncoder(data []byte) encoder {
e := &encoder{data: data}
m := NewMultibase(e)
m := New(e)
e.Multibase = m
return *e