Skip to content

Commit

Permalink
siid初始化
Browse files Browse the repository at this point in the history
  • Loading branch information
祝黄清 committed Nov 14, 2022
1 parent e855ab2 commit c2f82f5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .sembumprc.yml
Original file line number Diff line number Diff line change
@@ -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:
8 changes: 7 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# siid
# SIID
协程安全的整型ID生成器,该ID是全局唯一的,并且是非严格递增的(多协程情况下)。

## 特性
Expand Down Expand Up @@ -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)
}
```

0 comments on commit c2f82f5

Please sign in to comment.