mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 18:36:30 +02:00
- import path comments are obsoleted by the go.mod file's module statement Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
19 lines
558 B
Go
19 lines
558 B
Go
// Package encoding defines interfaces shared by other packages that
|
|
// convert data to and from byte-level and textual representations.
|
|
package encoding
|
|
|
|
// MarshalUnmarshaler can both Marshal and Unmarshal a struct into and from a set of bytes.
|
|
type MarshalUnmarshaler interface {
|
|
Marshaler
|
|
Unmarshaler
|
|
}
|
|
|
|
// Marshaler encodes a struct into a set of bytes.
|
|
type Marshaler interface {
|
|
Marshal(interface{}) ([]byte, error)
|
|
}
|
|
|
|
// Unmarshaler decodes a set of bytes and returns a struct.
|
|
type Unmarshaler interface {
|
|
Unmarshal([]byte, interface{}) error
|
|
}
|