From cf3af4e507ae8536cc569571add25ca4a9440ef1 Mon Sep 17 00:00:00 2001 From: Awen Date: Sat, 22 Jun 2024 18:58:48 +0800 Subject: [PATCH] feat: added builder mode to generate instances --- v2/base/canvas/canvas.go | 2 +- v2/base/canvas/helper.go | 2 +- v2/base/canvas/matrix.go | 2 +- v2/base/canvas/nrgba.go | 2 +- v2/base/canvas/palette.go | 2 +- v2/base/canvas/types.go | 2 +- v2/base/codec/codec.go | 2 +- v2/base/helper/helper.go | 2 +- v2/base/imagedata/base.go | 6 ++++++ v2/base/imagedata/jpegdata.go | 2 +- v2/base/imagedata/pngdata.go | 2 +- v2/base/logger/logger.go | 2 +- v2/base/option/option.go | 2 +- v2/base/randgen/randgen.go | 2 +- v2/base/random/random.go | 2 +- v2/capts.go | 6 ++++++ v2/click/builder.go | 6 ++++++ v2/click/check.go | 2 +- v2/click/click.go | 2 +- v2/click/data.go | 2 +- v2/click/default.go | 2 +- v2/click/dot.go | 2 +- v2/click/draw.go | 2 +- v2/click/option.go | 2 +- v2/click/resource.go | 2 +- v2/rotate/block.go | 2 +- v2/rotate/builder.go | 6 ++++++ v2/rotate/check.go | 2 +- v2/rotate/data.go | 2 +- v2/rotate/default.go | 2 +- v2/rotate/draw.go | 2 +- v2/rotate/option.go | 2 +- v2/rotate/resource.go | 2 +- v2/rotate/rotate.go | 2 +- v2/slide/block.go | 2 +- v2/slide/builder.go | 6 ++++++ v2/slide/check.go | 2 +- v2/slide/data.go | 2 +- v2/slide/default.go | 2 +- v2/slide/draw.go | 2 +- v2/slide/option.go | 2 +- v2/slide/resource.go | 2 +- v2/slide/slide.go | 2 +- 43 files changed, 68 insertions(+), 38 deletions(-) diff --git a/v2/base/canvas/canvas.go b/v2/base/canvas/canvas.go index c7256f7..5d9115a 100644 --- a/v2/base/canvas/canvas.go +++ b/v2/base/canvas/canvas.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/base/canvas/helper.go b/v2/base/canvas/helper.go index e63be92..a3701e7 100644 --- a/v2/base/canvas/helper.go +++ b/v2/base/canvas/helper.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/base/canvas/matrix.go b/v2/base/canvas/matrix.go index 9d6e107..7c41a98 100644 --- a/v2/base/canvas/matrix.go +++ b/v2/base/canvas/matrix.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/base/canvas/nrgba.go b/v2/base/canvas/nrgba.go index 699d51b..857da65 100644 --- a/v2/base/canvas/nrgba.go +++ b/v2/base/canvas/nrgba.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/base/canvas/palette.go b/v2/base/canvas/palette.go index 6b7b5a5..9884e0c 100644 --- a/v2/base/canvas/palette.go +++ b/v2/base/canvas/palette.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/base/canvas/types.go b/v2/base/canvas/types.go index fd6da2d..5bed980 100644 --- a/v2/base/canvas/types.go +++ b/v2/base/canvas/types.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/base/codec/codec.go b/v2/base/codec/codec.go index d1bcfcc..cccaa8c 100644 --- a/v2/base/codec/codec.go +++ b/v2/base/codec/codec.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/base/helper/helper.go b/v2/base/helper/helper.go index 36557c8..93d825c 100644 --- a/v2/base/helper/helper.go +++ b/v2/base/helper/helper.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/base/imagedata/base.go b/v2/base/imagedata/base.go index 9b9d07d..65c678a 100644 --- a/v2/base/imagedata/base.go +++ b/v2/base/imagedata/base.go @@ -1,3 +1,9 @@ +/** + * @Author Awen + * @Date 2024/06/01 + * @Email wengaolng@gmail.com + **/ + package imagedata import ( diff --git a/v2/base/imagedata/jpegdata.go b/v2/base/imagedata/jpegdata.go index 154baa6..1a32747 100644 --- a/v2/base/imagedata/jpegdata.go +++ b/v2/base/imagedata/jpegdata.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/base/imagedata/pngdata.go b/v2/base/imagedata/pngdata.go index 53ac535..a4a9a4c 100644 --- a/v2/base/imagedata/pngdata.go +++ b/v2/base/imagedata/pngdata.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/base/logger/logger.go b/v2/base/logger/logger.go index 6a35ca3..034cf49 100644 --- a/v2/base/logger/logger.go +++ b/v2/base/logger/logger.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/base/option/option.go b/v2/base/option/option.go index 16aa116..5c32ddc 100644 --- a/v2/base/option/option.go +++ b/v2/base/option/option.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/base/randgen/randgen.go b/v2/base/randgen/randgen.go index 1e0f707..77ee5a1 100644 --- a/v2/base/randgen/randgen.go +++ b/v2/base/randgen/randgen.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/base/random/random.go b/v2/base/random/random.go index 506059d..53f0d11 100644 --- a/v2/base/random/random.go +++ b/v2/base/random/random.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/capts.go b/v2/capts.go index 31b1a70..e20a317 100644 --- a/v2/capts.go +++ b/v2/capts.go @@ -1,3 +1,9 @@ +/** + * @Author Awen + * @Date 2024/06/01 + * @Email wengaolng@gmail.com + **/ + package v2 import ( diff --git a/v2/click/builder.go b/v2/click/builder.go index 3f19e8f..0d51b63 100644 --- a/v2/click/builder.go +++ b/v2/click/builder.go @@ -1,3 +1,9 @@ +/** + * @Author Awen + * @Date 2024/06/08 + * @Email wengaolng@gmail.com + **/ + package click // Builder . diff --git a/v2/click/check.go b/v2/click/check.go index bf42b49..7f8cd5e 100644 --- a/v2/click/check.go +++ b/v2/click/check.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/click/click.go b/v2/click/click.go index 32f3308..f03a53f 100644 --- a/v2/click/click.go +++ b/v2/click/click.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/click/data.go b/v2/click/data.go index ac237a1..4edbbd1 100644 --- a/v2/click/data.go +++ b/v2/click/data.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/click/default.go b/v2/click/default.go index aae8569..844ec8e 100644 --- a/v2/click/default.go +++ b/v2/click/default.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/click/dot.go b/v2/click/dot.go index e9a882a..b0ef08b 100644 --- a/v2/click/dot.go +++ b/v2/click/dot.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/click/draw.go b/v2/click/draw.go index e7b16f1..cc11acc 100644 --- a/v2/click/draw.go +++ b/v2/click/draw.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/click/option.go b/v2/click/option.go index e0188e3..ddada4c 100644 --- a/v2/click/option.go +++ b/v2/click/option.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/click/resource.go b/v2/click/resource.go index ad0a401..05fac9e 100644 --- a/v2/click/resource.go +++ b/v2/click/resource.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/rotate/block.go b/v2/rotate/block.go index 28a4988..10be102 100644 --- a/v2/rotate/block.go +++ b/v2/rotate/block.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/rotate/builder.go b/v2/rotate/builder.go index 7b6dfda..135a5c2 100644 --- a/v2/rotate/builder.go +++ b/v2/rotate/builder.go @@ -1,3 +1,9 @@ +/** + * @Author Awen + * @Date 2024/06/08 + * @Email wengaolng@gmail.com + **/ + package rotate // Builder . diff --git a/v2/rotate/check.go b/v2/rotate/check.go index b1f8c85..47ca699 100644 --- a/v2/rotate/check.go +++ b/v2/rotate/check.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/rotate/data.go b/v2/rotate/data.go index 914d35e..ea9e9bf 100644 --- a/v2/rotate/data.go +++ b/v2/rotate/data.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/rotate/default.go b/v2/rotate/default.go index 97ab8c5..de8d917 100644 --- a/v2/rotate/default.go +++ b/v2/rotate/default.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/rotate/draw.go b/v2/rotate/draw.go index 1c16dad..4c19898 100644 --- a/v2/rotate/draw.go +++ b/v2/rotate/draw.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/rotate/option.go b/v2/rotate/option.go index 5989fc8..550802c 100644 --- a/v2/rotate/option.go +++ b/v2/rotate/option.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/rotate/resource.go b/v2/rotate/resource.go index eca6837..1c1cb14 100644 --- a/v2/rotate/resource.go +++ b/v2/rotate/resource.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/rotate/rotate.go b/v2/rotate/rotate.go index f7a5ef1..6028784 100644 --- a/v2/rotate/rotate.go +++ b/v2/rotate/rotate.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/slide/block.go b/v2/slide/block.go index 4c1613c..a794f80 100644 --- a/v2/slide/block.go +++ b/v2/slide/block.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/slide/builder.go b/v2/slide/builder.go index b584ca9..167352d 100644 --- a/v2/slide/builder.go +++ b/v2/slide/builder.go @@ -1,3 +1,9 @@ +/** + * @Author Awen + * @Date 2024/06/08 + * @Email wengaolng@gmail.com + **/ + package slide // Builder . diff --git a/v2/slide/check.go b/v2/slide/check.go index 76e971b..110cce2 100644 --- a/v2/slide/check.go +++ b/v2/slide/check.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/slide/data.go b/v2/slide/data.go index 7863074..50dab9d 100644 --- a/v2/slide/data.go +++ b/v2/slide/data.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/slide/default.go b/v2/slide/default.go index 7718f24..3cca618 100644 --- a/v2/slide/default.go +++ b/v2/slide/default.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/slide/draw.go b/v2/slide/draw.go index 8027222..0f3763b 100644 --- a/v2/slide/draw.go +++ b/v2/slide/draw.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/slide/option.go b/v2/slide/option.go index 82b3fba..7517619 100644 --- a/v2/slide/option.go +++ b/v2/slide/option.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/slide/resource.go b/v2/slide/resource.go index 1bf2dfa..776a57a 100644 --- a/v2/slide/resource.go +++ b/v2/slide/resource.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ diff --git a/v2/slide/slide.go b/v2/slide/slide.go index 445da46..490aa2f 100644 --- a/v2/slide/slide.go +++ b/v2/slide/slide.go @@ -1,6 +1,6 @@ /** * @Author Awen - * @Date 2024/05/01 + * @Date 2024/06/01 * @Email wengaolng@gmail.com **/