From 6f9bd9d71f6ca1f51446c3af26866a57244d7f48 Mon Sep 17 00:00:00 2001 From: marvin Date: Fri, 14 Jan 2022 17:47:28 +0800 Subject: [PATCH] fix keygen link --- README.md | 2 +- README_zh.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c4746d8..1e917dc 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ It's signature is `func(tableIdx int64) int64`. For an example, see the [usage example](#usage-example) above. -We recommend you use the [keygen](https://github.com/longbridgeapp/gorm-sharding) component, it is a distributed primary key generator. +We recommend you use the [keygen](https://github.com/longbridgeapp/gorm-sharding/tree/main/keygen) component, it is a distributed primary key generator. When use auto-increment like generator, the tableIdx argument could ignored. diff --git a/README_zh.md b/README_zh.md index 2a6fbd1..b8edcaf 100644 --- a/README_zh.md +++ b/README_zh.md @@ -97,7 +97,7 @@ Whether to enable a full table. 可以参考上面的用法示例。 -推荐使用 [keygen](https://github.com/longbridgeapp/gorm-sharding) 组件,它是一个分布式的主键生成器。 +推荐使用 [keygen](https://github.com/longbridgeapp/gorm-sharding/tree/main/keygen) 组件,它是一个分布式的主键生成器。 当使用自增类的生成器时,tableIdx 参数可以忽略。