Mercurial > gemma
diff pkg/models/reproject.go @ 1328:d753ce6cf588
To make golint happier made context.Context to be the first argument in all calls.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 25 Nov 2018 16:26:41 +0100 |
parents | a244b18cb916 |
children | 1222b777f51f |
line wrap: on
line diff
--- a/pkg/models/reproject.go Sun Nov 25 15:56:07 2018 +0100 +++ b/pkg/models/reproject.go Sun Nov 25 16:26:41 2018 +0100 @@ -29,8 +29,8 @@ } func NewReprojector( + ctx context.Context, conn *sql.Conn, - ctx context.Context, fromEPSG, toEPSG uint32, ) (*Reprojector, error) { stmt, err := conn.PrepareContext(ctx, reprojectSQL) @@ -53,8 +53,8 @@ } func (r *Reprojector) Reproject( + ctx context.Context, x, y float64, - ctx context.Context, ) (v, w float64, err error) { err = r.stmt.QueryRowContext(ctx, x, y, r.FromEPSG, r.ToEPSG).Scan(&v, &w) return