Skip to content

Commit 4ff8230

Browse files
committed
strictcsv: don't use deprecated func
Change-Id: I428f0735765ca11fd0b04014e2deae7ba65e09ab
1 parent 815d6d0 commit 4ff8230

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

strictcsv/marshal.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ func getGettableFields(t reflect.Type) ([]gettableField, error) {
154154
switch {
155155
case field.Type.Implements(marshalCSVType):
156156
getter = getMarshalCSVValue
157-
case reflect.PtrTo(field.Type).Implements(marshalCSVType):
157+
case reflect.PointerTo(field.Type).Implements(marshalCSVType):
158158
getter = getMarshalCSVValue
159159
case field.Type.Implements(marshalTextType):
160160
getter = getMarshalTextValue
161-
case reflect.PtrTo(field.Type).Implements(marshalTextType):
161+
case reflect.PointerTo(field.Type).Implements(marshalTextType):
162162
getter = getMarshalTextValue
163163
default:
164164
ft := field.Type

strictcsv/unmarshal.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ func getSettableFields(t reflect.Type) (settableFields, error) {
165165
switch {
166166
case field.Type.Implements(unmarshalCSVType):
167167
setter = setUnmarshalCSVValue
168-
case reflect.PtrTo(field.Type).Implements(unmarshalCSVType):
168+
case reflect.PointerTo(field.Type).Implements(unmarshalCSVType):
169169
setter = setUnmarshalCSVValue
170170
case field.Type.Implements(unmarshalTextType):
171171
setter = setUnmarshalTextValue
172-
case reflect.PtrTo(field.Type).Implements(unmarshalTextType):
172+
case reflect.PointerTo(field.Type).Implements(unmarshalTextType):
173173
setter = setUnmarshalTextValue
174174
default:
175175
ft := field.Type

0 commit comments

Comments
 (0)