added default decoders

This commit is contained in:
Timon Ringwald 2022-07-08 22:54:33 +02:00
parent b4c0849e29
commit 5f85c26d4a

45
default_decoders.go Normal file
View File

@ -0,0 +1,45 @@
package advsql
func IntDecoder(value *int, decode DecodeFunc) error {
return decode(value)
}
func Int8Decoder(value *int8, decode DecodeFunc) error {
return decode(value)
}
func Int16Decoder(value *int16, decode DecodeFunc) error {
return decode(value)
}
func Int32Decoder(value *int32, decode DecodeFunc) error {
return decode(value)
}
func Int64Decoder(value *int64, decode DecodeFunc) error {
return decode(value)
}
func Uint8Decoder(value *uint8, decode DecodeFunc) error {
return decode(value)
}
func Uint16Decoder(value *uint16, decode DecodeFunc) error {
return decode(value)
}
func Uint32Decoder(value *uint32, decode DecodeFunc) error {
return decode(value)
}
func Uint64Decoder(value *uint64, decode DecodeFunc) error {
return decode(value)
}
func Float32Decoder(value *float32, decode DecodeFunc) error {
return decode(value)
}
func Float64Decoder(value *float64, decode DecodeFunc) error {
return decode(value)
}