diff pkg/wfs/rawfeaturecollection.go @ 1689:6caf5cd6249e

WFS: Made golint happy.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 30 Dec 2018 14:39:46 +0100
parents 92da44ba610c
children
line wrap: on
line diff
--- a/pkg/wfs/rawfeaturecollection.go	Sun Dec 30 13:23:10 2018 +0100
+++ b/pkg/wfs/rawfeaturecollection.go	Sun Dec 30 14:39:46 2018 +0100
@@ -18,6 +18,8 @@
 	"io"
 )
 
+// RawFeatureCollection is a template for a feature collection
+// returned by a WFS server.
 type RawFeatureCollection struct {
 	CRS *struct {
 		Properties struct {
@@ -33,6 +35,7 @@
 	} `json:"features"`
 }
 
+// ParseRawFeatureCollection turns a io.Reader into raw feature collection.
 func ParseRawFeatureCollection(r io.Reader) (*RawFeatureCollection, error) {
 	rfc := new(RawFeatureCollection)
 	if err := json.NewDecoder(r).Decode(rfc); err != nil {