2
0

Replace interface{} with any

This commit is contained in:
Jack Christensen
2022-04-09 09:12:55 -05:00
parent 95265a7421
commit f14fb3d692
106 changed files with 1045 additions and 1045 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ const (
BinaryFormatCode = 1
)
func convertSimpleArgument(m *pgtype.Map, arg interface{}) (interface{}, error) {
func convertSimpleArgument(m *pgtype.Map, arg any) (any, error) {
if anynil.Is(arg) {
return nil, nil
}
@@ -27,7 +27,7 @@ func convertSimpleArgument(m *pgtype.Map, arg interface{}) (interface{}, error)
return string(buf), nil
}
func encodeCopyValue(m *pgtype.Map, buf []byte, oid uint32, arg interface{}) ([]byte, error) {
func encodeCopyValue(m *pgtype.Map, buf []byte, oid uint32, arg any) ([]byte, error) {
if anynil.Is(arg) {
return pgio.AppendInt32(buf, -1), nil
}