From 93d1c15c05dd7d06f99dad920f11545a8a8654d0 Mon Sep 17 00:00:00 2001 From: Kevin Seidel Date: Wed, 31 Jan 2018 08:44:37 +0100 Subject: Rename types to const --- const.go | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ types.go | 76 ---------------------------------------------------------------- 2 files changed, 76 insertions(+), 76 deletions(-) create mode 100644 const.go delete mode 100644 types.go diff --git a/const.go b/const.go new file mode 100644 index 0000000..1d8918e --- /dev/null +++ b/const.go @@ -0,0 +1,76 @@ +package gofpdf + +// Page orientation +const ( + // PageOrientationPortrait ... + PageOrientationPortrait = "P" + // PageOrientationLandscape ... + PageOrientationLandscape = "L" +) + +// Size Unit +const ( + // UnitPoint ... + UnitPoint = "pt" + // UnitMillimeter ... + UnitMillimeter = "mm" + // UnitCentimeter + UnitCentimeter = "cm" + // UnitInch + UnitInch = "inch" +) + +// Page size +const ( + // PageSizeA3 ... + PageSizeA3 = "A3" + // PageSizeA4 ... + PageSizeA4 = "A4" + // PageSizeA5 ... + PageSizeA5 = "A5" + // PageSizeLetter ... + PageSizeLetter = "Letter" + // PageSizeLegal ... + PageSizeLegal = "Legal" +) + +// Border +const ( + // BorderNone ... + BorderNone = "" + // BorderFull ... + BorderFull = "1" + // BorderLeft ... + BorderLeft = "L" + // BorderTop ... + BorderTop = "T" + // BorderRight ... + BorderRight = "R" + // BorderBottom ... + BorderBottom = "B" +) + +// LineBreak +const ( + LineBreakNone = 0 + LineBreakNormal = 1 + LineBreakBelow = 2 +) + +// Alignment +const ( + // AlignLeft ... + AlignLeft = "L" + // AlignRight ... + AlignRight = "R" + // AlignCenter ... + AlignCenter = "C" + // AlignTop ... + AlignTop = "T" + // AlignBottom ... + AlignBottom = "B" + // AlignMiddle ... + AlignMiddle = "M" + // AlignBaseline ... + AlignBaseline = "B" +) diff --git a/types.go b/types.go deleted file mode 100644 index 1d8918e..0000000 --- a/types.go +++ /dev/null @@ -1,76 +0,0 @@ -package gofpdf - -// Page orientation -const ( - // PageOrientationPortrait ... - PageOrientationPortrait = "P" - // PageOrientationLandscape ... - PageOrientationLandscape = "L" -) - -// Size Unit -const ( - // UnitPoint ... - UnitPoint = "pt" - // UnitMillimeter ... - UnitMillimeter = "mm" - // UnitCentimeter - UnitCentimeter = "cm" - // UnitInch - UnitInch = "inch" -) - -// Page size -const ( - // PageSizeA3 ... - PageSizeA3 = "A3" - // PageSizeA4 ... - PageSizeA4 = "A4" - // PageSizeA5 ... - PageSizeA5 = "A5" - // PageSizeLetter ... - PageSizeLetter = "Letter" - // PageSizeLegal ... - PageSizeLegal = "Legal" -) - -// Border -const ( - // BorderNone ... - BorderNone = "" - // BorderFull ... - BorderFull = "1" - // BorderLeft ... - BorderLeft = "L" - // BorderTop ... - BorderTop = "T" - // BorderRight ... - BorderRight = "R" - // BorderBottom ... - BorderBottom = "B" -) - -// LineBreak -const ( - LineBreakNone = 0 - LineBreakNormal = 1 - LineBreakBelow = 2 -) - -// Alignment -const ( - // AlignLeft ... - AlignLeft = "L" - // AlignRight ... - AlignRight = "R" - // AlignCenter ... - AlignCenter = "C" - // AlignTop ... - AlignTop = "T" - // AlignBottom ... - AlignBottom = "B" - // AlignMiddle ... - AlignMiddle = "M" - // AlignBaseline ... - AlignBaseline = "B" -) -- cgit v1.2.1-24-ge1ad