summaryrefslogtreecommitdiff
path: root/fpdf_test.go
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@code.google.com>2014-01-29 11:38:29 -0500
committerKurt Jung <kurt.w.jung@code.google.com>2014-01-29 11:38:29 -0500
commit5c3d717c55e3a9cadd924d6b20eab99f8f9615ba (patch)
tree95cb11ab3e8e04200af7014cbd480ac58e1f6082 /fpdf_test.go
parent3134bc7e5679c258c6b6f20e4214c75d1314ff48 (diff)
Name changes for Lint conformance. <rant>One key advantage of the camelback naming convention is that a machine can quickly tokenize name segments for indexing and tagging purposes. For example, HtmlWrite easily breaks into Html and Write. By capitalizing all letters in an initialism, this name breaks into H, T, M, L, and Write -- not as useful for tagging purposes. Rather than having to manually filter through the mostly valuable output of golint, I have grudgingly changed names so that golint produces no output.</rant>
Diffstat (limited to 'fpdf_test.go')
-rw-r--r--fpdf_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/fpdf_test.go b/fpdf_test.go
index 32e4237..e771ac5 100644
--- a/fpdf_test.go
+++ b/fpdf_test.go
@@ -471,7 +471,7 @@ func ExampleFpdf_tutorial06() {
`<i>italic</i>, <u>underlined</u>, or <b><i><u>all at once</u></i></b>!<br><br>` +
`You can also insert links on text, such as ` +
`<a href="http://www.fpdf.org">www.fpdf.org</a>, or on an image: click on the logo.`
- html := pdf.HtmlBasicNew()
+ html := pdf.HTMLBasicNew()
html.Write(lineHt, htmlStr)
pdf.OutputAndClose(docWriter(pdf, 6))
// Output:
@@ -1050,7 +1050,7 @@ func ExampleFpdf_tutorial20() {
sigFileStr = "signature.svg"
)
var (
- sig gofpdf.SvgBasicType
+ sig gofpdf.SVGBasicType
err error
)
pdf := gofpdf.New("P", "mm", "A4", cnFontDir) // A4 210.0 x 297.0
@@ -1065,9 +1065,9 @@ func ExampleFpdf_tutorial20() {
`type of vector graphic returned from a ` +
`<a href="http://willowsystems.github.io/jSignature/#/demo/">jSignature</a> ` +
`web control is supported and is used in this example.`
- html := pdf.HtmlBasicNew()
+ html := pdf.HTMLBasicNew()
html.Write(lineHt, htmlStr)
- sig, err = gofpdf.SvgBasicFileParse(imageFile(sigFileStr))
+ sig, err = gofpdf.SVGBasicFileParse(imageFile(sigFileStr))
if err == nil {
scale := 100 / sig.Wd
scaleY := 30 / sig.Ht
@@ -1078,7 +1078,7 @@ func ExampleFpdf_tutorial20() {
pdf.SetLineWidth(0.25)
pdf.SetDrawColor(0, 0, 128)
pdf.SetXY((210.0-scale*sig.Wd)/2.0, pdf.GetY()+10)
- pdf.SvgBasicWrite(&sig, scale)
+ pdf.SVGBasicWrite(&sig, scale)
} else {
pdf.SetError(err)
}