mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-11 17:43:48 -04:00
30 lines
482 B
Go
30 lines
482 B
Go
// Package comdef provide some common type or constant definitions
|
|
package comdef
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
)
|
|
|
|
// ByteStringWriter interface
|
|
type ByteStringWriter interface {
|
|
io.Writer
|
|
io.ByteWriter
|
|
io.StringWriter
|
|
fmt.Stringer
|
|
}
|
|
|
|
// StringWriteStringer interface
|
|
type StringWriteStringer interface {
|
|
io.StringWriter
|
|
fmt.Stringer
|
|
}
|
|
|
|
type (
|
|
// MarshalFunc define
|
|
MarshalFunc func(v any) ([]byte, error)
|
|
|
|
// UnmarshalFunc define
|
|
UnmarshalFunc func(bts []byte, ptr any) error
|
|
)
|