Skip to content

Commit

Permalink
chore: update github username
Browse files Browse the repository at this point in the history
  • Loading branch information
yankeguo committed Jan 2, 2024
1 parent 6baa66d commit fa0edbc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@ name: Go

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:

build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.17', '1.18', '1.19', '1.20' ]
go: ["1.17", "1.18", "1.19", "1.20", "1.21"]
steps:
- uses: actions/checkout@v3

Expand Down
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# snowid

[![workflow badge](https://github.com/guoyk93/snowid/actions/workflows/go.yml/badge.svg)](https://github.com/guoyk93/snowid/actions)
[![Go Reference](https://pkg.go.dev/badge/github.com/guoyk93/snowid.svg)](https://pkg.go.dev/github.com/guoyk93/snowid)
[![workflow badge](https://github.com/yankeguo/snowid/actions/workflows/go.yml/badge.svg)](https://github.com/yankeguo/snowid/actions)
[![Go Reference](https://pkg.go.dev/badge/github.com/yankeguo/snowid.svg)](https://pkg.go.dev/github.com/yankeguo/snowid)

A concurrent-safe lock-free implementation of snowflake algorithm in Golang

## Install

`go get -u github.com/guoyk93/snowid`
`go get -u github.com/yankeguo/snowid`

## Usage

Expand Down Expand Up @@ -38,16 +38,12 @@ Less than `1us/op` on **Apple MacBook Air (M1)**
```
goos: darwin
goarch: arm64
pkg: github.com/guoyk93/snowid
pkg: github.com/yankeguo/snowid
BenchmarkGenerator_NewID-8 2465515 469.5 ns/op
PASS
ok github.com/guoyk93/snowid 1.742s
ok github.com/yankeguo/snowid 1.742s
```

## Donation

View https://guoyk.xyz/donation

## Credits

GUO YANKE, MIT License
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/guoyk93/snowid
module github.com/yankeguo/snowid

go 1.18

Expand Down

0 comments on commit fa0edbc

Please sign in to comment.