mirror of
https://github.com/jackc/pgx.git
synced 2025-05-02 05:30:04 +00:00
Methods defined on T are also available on *T. Thought this technically changes the interface, because *T will be automatically dereferenced as needed it shouldn't be a breaking change. See a8802b16cc593842f5c69b0f7cfb0de11d5cd3a8 for similar change.
32 lines
712 B
Go
32 lines
712 B
Go
package pgtype
|
|
|
|
type CIDR Inet
|
|
|
|
func (dst *CIDR) Set(src interface{}) error {
|
|
return (*Inet)(dst).Set(src)
|
|
}
|
|
|
|
func (dst CIDR) Get() interface{} {
|
|
return (Inet)(dst).Get()
|
|
}
|
|
|
|
func (src *CIDR) AssignTo(dst interface{}) error {
|
|
return (*Inet)(src).AssignTo(dst)
|
|
}
|
|
|
|
func (dst *CIDR) DecodeText(ci *ConnInfo, src []byte) error {
|
|
return (*Inet)(dst).DecodeText(ci, src)
|
|
}
|
|
|
|
func (dst *CIDR) DecodeBinary(ci *ConnInfo, src []byte) error {
|
|
return (*Inet)(dst).DecodeBinary(ci, src)
|
|
}
|
|
|
|
func (src CIDR) EncodeText(ci *ConnInfo, buf []byte) ([]byte, error) {
|
|
return (Inet)(src).EncodeText(ci, buf)
|
|
}
|
|
|
|
func (src CIDR) EncodeBinary(ci *ConnInfo, buf []byte) ([]byte, error) {
|
|
return (Inet)(src).EncodeBinary(ci, buf)
|
|
}
|