From e879b00d578766718c71ed7a16ed1f5334d8e36a Mon Sep 17 00:00:00 2001 From: Sakib Sami Date: Mon, 13 Aug 2018 23:36:22 +0600 Subject: [PATCH] - updated : Comments to godoc style --- pdf/contentstream/draw/shapes.go | 2 +- pdf/creator/border.go | 2 +- pdf/creator/table.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pdf/contentstream/draw/shapes.go b/pdf/contentstream/draw/shapes.go index 20f92c04..c09aa07e 100644 --- a/pdf/contentstream/draw/shapes.go +++ b/pdf/contentstream/draw/shapes.go @@ -364,7 +364,7 @@ func (line Line) Draw(gsName string) ([]byte, *pdf.PdfRectangle, error) { return creator.Bytes(), bbox, nil } -// Defines a basic line between point 1 (X1,Y1) and point 2 (X2,Y2). The line has a specified width, color and opacity. +// BasicLine defines a line between point 1 (X1,Y1) and point 2 (X2,Y2). The line has a specified width, color and opacity. type BasicLine struct { X1 float64 Y1 float64 diff --git a/pdf/creator/border.go b/pdf/creator/border.go index b372c043..63170e16 100644 --- a/pdf/creator/border.go +++ b/pdf/creator/border.go @@ -120,7 +120,7 @@ func (border *border) SetStyleBottom(style CellBorderStyle) { border.styleBottom = style } -// GeneratePageBlocks creates drawable. +// GeneratePageBlocks implements drawable interface. func (border *border) GeneratePageBlocks(ctx DrawContext) ([]*Block, DrawContext, error) { block := NewBlock(ctx.PageWidth, ctx.PageHeight) // Start points is in upper left corner. diff --git a/pdf/creator/table.go b/pdf/creator/table.go index 53c8cdf9..10876841 100644 --- a/pdf/creator/table.go +++ b/pdf/creator/table.go @@ -558,7 +558,7 @@ func (cell *TableCell) SetBorderColor(col Color) { cell.borderColorTop = model.NewPdfColorDeviceRGB(col.ToRGB()) } -// SetBorderLineStyle sets border style (currently dashed or plain) +// SetBorderLineStyle sets border style (currently dashed or plain). func (cell *TableCell) SetBorderLineStyle(style draw.LineStyle) { cell.borderLineStyle = style }