diff --git a/go/arrow/ipc/file_reader.go b/go/arrow/ipc/file_reader.go index 658d79d330684..a561352960a66 100644 --- a/go/arrow/ipc/file_reader.go +++ b/go/arrow/ipc/file_reader.go @@ -595,12 +595,7 @@ func (ctx *arrayLoaderContext) loadMap(dt *arrow.MapType) arrow.ArrayData { return array.NewData(dt, int(field.Length()), buffers, []arrow.ArrayData{sub}, int(field.NullCount()), 0) } -type listLike interface { - arrow.DataType - Elem() arrow.DataType -} - -func (ctx *arrayLoaderContext) loadList(dt listLike) arrow.ArrayData { +func (ctx *arrayLoaderContext) loadList(dt arrow.ListLikeType) arrow.ArrayData { field, buffers := ctx.loadCommon(dt.ID(), 2) buffers = append(buffers, ctx.buffer()) defer releaseBuffers(buffers)