changeset 4853:181c2c05b12a

More golint fixes.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 19 Nov 2019 16:27:38 +0100
parents 046a07a33b19
children b9599e5e8004
files pkg/mesh/areas.go pkg/mesh/cache.go
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/mesh/areas.go	Tue Nov 19 16:08:55 2019 +0100
+++ b/pkg/mesh/areas.go	Tue Nov 19 16:27:38 2019 +0100
@@ -20,6 +20,11 @@
 	"gemma.intevation.de/gemma/pkg/common"
 )
 
+// GenerateRandomVertices generates n random vertices.
+// X/Y values are diced between the X/Y components of min and max.
+// eval is called to find out the corresponding Z value.
+// The random vertices are are transfered in chunks to
+// the callback function.
 func GenerateRandomVertices(
 	n int,
 	min, max Vertex,
--- a/pkg/mesh/cache.go	Tue Nov 19 16:08:55 2019 +0100
+++ b/pkg/mesh/cache.go	Tue Nov 19 16:27:38 2019 +0100
@@ -103,7 +103,7 @@
 	return cache.get(ctx, conn, bottleneck, date)
 }
 
-// FetchOctreeDirectly loads an octree directly from the database.
+// FetchMeshDirectly loads a mesh directly from the database.
 func FetchMeshDirectly(
 	ctx context.Context,
 	tx *sql.Tx,