From 0002baf4ceec3fa0a7c935e7205d5364c0adbaa5 Mon Sep 17 00:00:00 2001 From: Wilk Date: Mon, 7 Nov 2016 12:04:39 +0100 Subject: Use struct keywords in examples of fpdf_test to comply with go vet (#90) Good catch, @flibustenet -- thanks! --- fpdf_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fpdf_test.go b/fpdf_test.go index 7febb30..9f99568 100644 --- a/fpdf_test.go +++ b/fpdf_test.go @@ -825,8 +825,8 @@ func ExampleFpdf_ClipText() { 0.7, 0.3, 0.7, 0.5) pdf.ClipEnd() - pdf.ClipPolygon([]gofpdf.PointType{{80, y + 20}, {90, y}, - {100, y + 20}}, true) + pdf.ClipPolygon([]gofpdf.PointType{{X: 80, Y: y + 20}, {X: 90, Y: y}, + {X: 100, Y: y + 20}}, true) pdf.LinearGradient(80, y, 20, 20, 250, 220, 250, 60, 40, 60, 0.5, 1, 0.5, 0.5) pdf.ClipEnd() -- cgit v1.2.1-24-ge1ad