diff options
author | Jelmer Snoeck <jelmer.snoeck@gmail.com> | 2015-08-26 20:40:33 +0100 |
---|---|---|
committer | Jelmer Snoeck <jelmer.snoeck@gmail.com> | 2015-08-26 20:40:33 +0100 |
commit | 211fa5aeadb5acf6975059d76d9a05be9335e7a6 (patch) | |
tree | f59e2e4637b5307137b2659d8dffad649e43c3b7 /contrib/httpimg | |
parent | 74253e5c9ca7edeee98bcf4b38d9ef1d00fe7a0e (diff) |
Examples: rename function/file for clarification.
Diffstat (limited to 'contrib/httpimg')
-rw-r--r-- | contrib/httpimg/httpimg_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
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 } |