-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
57 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# ❄️ GO-Snowflake | ||
# ❄️ Go-Snowflake | ||
|
||
[![Go Doc](https://godoc.org/github.com/housemecn/snowflake?status.svg)](https://godoc.org/github.com/housemecn/snowflake) | ||
[![Build Status](https://travis-ci.com/housemecn/snowflake.svg?branch=master)](https://travis-ci.com/housemecn/snowflake) | ||
[![Go Report](https://goreportcard.com/badge/github.com/housemecn/snowflake?v=1)](https://goreportcard.com/report/github.com/housemecn/snowflake) | ||
[![Go Reference](https://pkg.go.dev/badge/github.com/houseme/snowflake.svg)](https://pkg.go.dev/github.com/houseme/snowflake) | ||
[![GoFrame CI](https://github.com/houseme/snowflake/actions/workflows/gf.yml/badge.svg)](https://github.com/houseme/snowflake/actions/workflows/gf.yml) | ||
[![Go Report](https://goreportcard.com/badge/github.com/houseme/snowflake?v=1)](https://goreportcard.com/report/github.com/houseme/snowflake) | ||
[![Production Ready](https://img.shields.io/badge/production-ready-blue.svg)](https://github.com/housemecn/snowflake) | ||
[![License](https://img.shields.io/github/license/housemecn/snowflake.svg?style=flat)](https://github.com/housemecn/snowflake) | ||
|
||
|
@@ -27,18 +27,19 @@ Twitter设计了Snowflake算法为分布式系统生成ID,Snowflake的id是int64 | |
### 🕹 克隆 & 运行 | ||
|
||
```bash | ||
git clone https://github.com/housemecn/go-snowflake.git | ||
git clone https://github.com/houseme/snowflake.git | ||
|
||
go run ./.example/main.go | ||
``` | ||
|
||
### 💾 安装 & 导入 | ||
|
||
```bash | ||
go get github.com/housemecn/snowflake | ||
|
||
go get github.com/houseme/snowflake | ||
``` | ||
```go | ||
// 在项目中导入模块 | ||
import "github.com/housemecn/snowflake" | ||
import "github.com/houseme/snowflake" | ||
``` | ||
|
||
### ⚠️注意事项 | ||
|
@@ -92,7 +93,7 @@ func TestLoad() { | |
|
||
> 运行结果 | ||
![load](https://github.com/housemecn/go-snowflake/raw/master/docs/[email protected]) | ||
![load](https://github.com/houseme/snowflake/raw/master/docs/[email protected]) | ||
|
||
## 🗂 使用说明 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/housemecn/snowflake | ||
module github.com/houseme/snowflake | ||
|
||
go 1.14 | ||
go 1.16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters