mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-06-25 16:40:46 +00:00
14 lines
276 B
Go
14 lines
276 B
Go
package pgtype
|
|
|
|
type TextFormatOnlyCodec struct {
|
|
Codec
|
|
}
|
|
|
|
func (c *TextFormatOnlyCodec) FormatSupported(format int16) bool {
|
|
return format == TextFormatCode && c.Codec.FormatSupported(format)
|
|
}
|
|
|
|
func (TextFormatOnlyCodec) PreferredFormat() int16 {
|
|
return TextFormatCode
|
|
}
|