From 93da5e850d26607b8469d57f5dc315e3d607710c Mon Sep 17 00:00:00 2001 From: yitter Date: Fri, 2 Apr 2021 22:53:44 +0800 Subject: [PATCH] auto commit --- Go/README.md | 10 +++++----- Go/source/go.mod | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Go/README.md b/Go/README.md index b1c605a..62c6e85 100644 --- a/Go/README.md +++ b/Go/README.md @@ -27,11 +27,11 @@ require github.com/yitter/idgenerator-go v1.2.0 ``` // 定义参数 -var options = idgen.NewIdGeneratorOptions(1) -options.WorkerId = 1 -options.WorkerIdBitLength = 6 -options.SeqBitLength = 6 -// ... +var options = idgen.NewIdGeneratorOptions(1) // 构造函数输入 WorkerId +// options.WorkerId = 1 +// options.WorkerIdBitLength = 6 +// options.SeqBitLength = 6 +// ... 以上参数一般不需要设置,系统有默认值 idgen.SetIdGenerator(options) // 调用方法生成Id diff --git a/Go/source/go.mod b/Go/source/go.mod index f40ef34..6de6bfa 100644 --- a/Go/source/go.mod +++ b/Go/source/go.mod @@ -1,5 +1,5 @@ module yitidgen -go 1.14 +go 1.16 require github.com/go-redis/redis/v8 v8.8.0 // indirect