Files
yutu/pkg/interface.go
T

26 lines
368 B
Go

package pkg
import (
"io"
)
type Getter[T any] interface {
Get([]string) ([]*T, error)
}
type Lister interface {
List([]string, string, string, io.Writer) error
}
type Inserter interface {
Insert(string, string, io.Writer) error
}
type Deleter interface {
Delete(writer io.Writer) error
}
type Updater interface {
Update(string, string, io.Writer) error
}