File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 16
16
- uses : actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed
17
17
- uses : golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8
18
18
with :
19
- version : v1.61 .0
19
+ version : v1.62 .0
20
20
test :
21
21
strategy :
22
22
matrix :
Original file line number Diff line number Diff line change 1
1
run :
2
- go : ' 1.22 '
2
+ go : ' 1.23 '
3
3
4
4
linters :
5
5
enable :
@@ -44,6 +44,7 @@ linters:
44
44
- gosmopolitan
45
45
- govet
46
46
- grouper
47
+ - iface
47
48
- importas
48
49
- inamedparam
49
50
- ineffassign
@@ -66,6 +67,7 @@ linters:
66
67
- promlinter
67
68
- protogetter
68
69
- reassign
70
+ - recvcheck
69
71
- revive
70
72
- rowserrcheck
71
73
- sloglint
@@ -97,7 +99,6 @@ linters:
97
99
- gocognit
98
100
- gocyclo
99
101
- godox
100
- - gomnd
101
102
- maintidx
102
103
- nakedret
103
104
- nestif
Original file line number Diff line number Diff line change @@ -529,11 +529,11 @@ func (s *Scanner) Close() error {
529
529
return err
530
530
}
531
531
532
- func (s Scanner ) ScannedRecords () int64 {
532
+ func (s * Scanner ) ScannedRecords () int64 {
533
533
return s .scanRecords
534
534
}
535
535
536
- func (s Scanner ) EstimatedRecords () int64 {
536
+ func (s * Scanner ) EstimatedRecords () int64 {
537
537
return s .estimatedRecords
538
538
}
539
539
@@ -565,21 +565,21 @@ func (s *Scanner) SHxHeader() *SHxHeader {
565
565
return nil
566
566
}
567
567
568
- func (s Scanner ) Charset () string {
568
+ func (s * Scanner ) Charset () string {
569
569
if s .fileCPG != nil {
570
570
return s .fileCPG .Charset
571
571
}
572
572
return ""
573
573
}
574
574
575
- func (s Scanner ) Projection () string {
575
+ func (s * Scanner ) Projection () string {
576
576
if s .filePRJ != nil {
577
577
return s .filePRJ .Projection
578
578
}
579
579
return ""
580
580
}
581
581
582
- func (s Scanner ) Error () error {
582
+ func (s * Scanner ) Error () error {
583
583
return s .err
584
584
}
585
585
Original file line number Diff line number Diff line change @@ -388,8 +388,8 @@ func TestReadFSAndZipFile(t *testing.T) {
388
388
func TestShapefileRecords (t * testing.T ) {
389
389
s , err := ReadZipFile ("testdata/110m-admin-0-countries.zip" , nil )
390
390
assert .NoError (t , err )
391
- var fieldss []map [string ]any
392
- var geoms []geom.T
391
+ fieldss := make ( []map [string ]any , 0 , s . NumRecords ())
392
+ geoms := make ( []geom.T , 0 , s . NumRecords ())
393
393
for fields , g := range s .Records () {
394
394
fieldss = append (fieldss , fields )
395
395
geoms = append (geoms , g )
You can’t perform that action at this time.
0 commit comments