From c2f82f59cff3732a01a22872d75109598c6f0fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9D=E9=BB=84=E6=B8=85?= Date: Mon, 14 Nov 2022 17:55:34 +0800 Subject: [PATCH] =?UTF-8?q?siid=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .sembumprc.yml | 26 ++++++++++++++++++++++++++ README.MD | 8 +++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .sembumprc.yml diff --git a/.sembumprc.yml b/.sembumprc.yml new file mode 100644 index 0000000..263c9c5 --- /dev/null +++ b/.sembumprc.yml @@ -0,0 +1,26 @@ +name: siid + +make_step: + - bump + - clog +latest_version_name: Unreleased +commit_filters: + - all +version_name_with_date: true +version_name_with_author: true +issue_uri_format: https://github.com/sandwich-go/%s/issues/%s +commit_uri_format: https://github.com/sandwich-go/%s/commit/%s +merge_duplicate_commit: true +commit_with_author_at_date: true +short_hash_len: 7 +issue_prefix: + - "#" +sem_pre_release_version: + - alpha + - beta +sem_initial_version: v0.0.1 +sem_master_branch_name: main +sem_version_branch_prefix: version/ +sem_initial_branch: 0.1 + +commit_replace: \ No newline at end of file diff --git a/README.MD b/README.MD index 19c8e4c..74801e0 100644 --- a/README.MD +++ b/README.MD @@ -1,4 +1,4 @@ -# siid +# SIID 协程安全的整型ID生成器,该ID是全局唯一的,并且是非严格递增的(多协程情况下)。 ## 特性 @@ -57,5 +57,11 @@ func main() { panic(err3) } fmt.Println("id =>", id) + + id1, err4 := e.Next() + if err4 != nil { + panic(err4) + } + fmt.Println("id =>", id1) } ``` \ No newline at end of file