comparison pkg/imports/wkb.go @ 5712:6270951dda28 revive-cleanup

/interface{}/any/
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 20 Feb 2024 22:37:51 +0100
parents 41a67619c170
children
comparison
equal deleted inserted replaced
5711:2dd155cc95ec 5712:6270951dda28
30 multiLineSlice []lineSlice 30 multiLineSlice []lineSlice
31 polygonSlice [][][]float64 31 polygonSlice [][][]float64
32 multiPolygonSlice []polygonSlice 32 multiPolygonSlice []polygonSlice
33 ) 33 )
34 34
35 func newPointFeature(newProperties func() interface{}) func() (string, interface{}) { 35 func newPointFeature(newProperties func() any) func() (string, any) {
36 return func() (string, interface{}) { return "Point", newProperties() } 36 return func() (string, any) { return "Point", newProperties() }
37 } 37 }
38 38
39 func newMultiLineFeature( 39 func newMultiLineFeature(
40 newProperties func() interface{}, 40 newProperties func() any,
41 ) func() (string, interface{}) { 41 ) func() (string, any) {
42 return func() (string, interface{}) { 42 return func() (string, any) {
43 return "MultiLineString", newProperties() 43 return "MultiLineString", newProperties()
44 } 44 }
45 } 45 }
46 46
47 func (ls lineSlice) toWKB(buf *bytes.Buffer) { 47 func (ls lineSlice) toWKB(buf *bytes.Buffer) {