From 5f85c26d4a633e1deb3c1ef21f7d4458c4779283 Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Fri, 8 Jul 2022 22:54:33 +0200 Subject: [PATCH] added default decoders --- default_decoders.go | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 default_decoders.go diff --git a/default_decoders.go b/default_decoders.go new file mode 100644 index 0000000..2af1019 --- /dev/null +++ b/default_decoders.go @@ -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) +}