From 211fa5aeadb5acf6975059d76d9a05be9335e7a6 Mon Sep 17 00:00:00 2001 From: Jelmer Snoeck Date: Wed, 26 Aug 2015 20:40:33 +0100 Subject: Examples: rename function/file for clarification. --- contrib/httpimg/httpimg_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'contrib') diff --git a/contrib/httpimg/httpimg_test.go b/contrib/httpimg/httpimg_test.go index cc007c6..3cd4218 100644 --- a/contrib/httpimg/httpimg_test.go +++ b/contrib/httpimg/httpimg_test.go @@ -25,7 +25,7 @@ func summary(err error, fileStr string) { } } -func ExampleFpdf_AddHttpImage() { +func ExampleRegister() { pdf := gofpdf.New("", "", "", "") pdf.SetFont("Helvetica", "", 12) pdf.SetFillColor(200, 200, 220) @@ -35,9 +35,9 @@ func ExampleFpdf_AddHttpImage() { httpimg.Register(pdf, url, "") pdf.Image(url, 100, 100, 20, 20, false, "", 0, "") - fileStr := exampleFilename("Fpdf_AddHttpImage") + fileStr := exampleFilename("contrib_httpimg_Register") err := pdf.OutputFileAndClose(fileStr) summary(err, fileStr) // Output: - // Successfully generated pdf/Fpdf_AddHttpImage.pdf + // Successfully generated pdf/contrib_httpimg_Register.pdf } -- cgit v1.2.1-24-ge1ad