Skip to content

Commit

Permalink
golang-module/carbon -> dromara/carbon
Browse files Browse the repository at this point in the history
  • Loading branch information
kuafuRace committed Nov 22, 2024
1 parent c5b866d commit 720a07a
Show file tree
Hide file tree
Showing 15 changed files with 57 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: gouguoyin
issuehunt: golang-module/carbon
issuehunt: dromara/carbon
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: ['https://www.gouguoyin.com/zanzhu.html']
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/ask-question.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Before asking a question, make sure you have:
- Searched existing Stack Overflow questions.
- Googled your question.
- Searched open and closed [GitHub issues](https://github.com/golang-module/carbon/issues?utf8=%E2%9C%93&q=is%3Aissue)
- Searched open and closed [GitHub issues](https://github.com/dromara/carbon/issues?utf8=%E2%9C%93&q=is%3Aissue)
- Read the documentation:
- [Carbon Readme](https://github.com/golang-module/carbon)
- [Carbon Readme](https://github.com/dromara/carbon)
-->
22 changes: 11 additions & 11 deletions README.cn.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Carbon #

[![Carbon Release](https://img.shields.io/github/release/dromara/carbon.svg)](https://github.com/dromara/carbon/releases)
[![Go Test](https://github.com/golang-module/carbon/actions/workflows/test.yml/badge.svg)](https://github.com/dromara/carbon/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/golang-module/carbon/v2)](https://goreportcard.com/report/github.com/dromara/carbon/v2)
[![Go Test](https://github.com/dromara/carbon/actions/workflows/test.yml/badge.svg)](https://github.com/dromara/carbon/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/dromara/carbon/v2)](https://goreportcard.com/report/github.com/dromara/carbon/v2)
[![Go Coverage](https://codecov.io/gh/dromara/carbon/branch/master/graph/badge.svg)](https://codecov.io/gh/dromara/carbon)
[![Carbon Doc](https://img.shields.io/badge/go.dev-reference-brightgreen?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/dromara/carbon/v2)
[![License](https://img.shields.io/github/license/dromara/carbon)](https://github.com/dromara/carbon/blob/master/LICENSE)
Expand All @@ -27,28 +27,28 @@

```go
// 使用 github 库
go get -u github.com/golang-module/carbon/v2
go get -u github.com/dromara/carbon/v2

import "github.com/golang-module/carbon/v2"
import "github.com/dromara/carbon/v2"

// 使用 gitee 库
go get -u gitee.com/golang-module/carbon/v2
go get -u gitee.com/dromara/carbon/v2

import "gitee.com/golang-module/carbon/v2"
import "gitee.com/dromara/carbon/v2"
```

##### Golang 版本小于 1.17 (必须)

```go
// 使用 github 库
go get -u github.com/golang-module/carbon
go get -u github.com/dromara/carbon

import "github.com/golang-module/carbon"
import "github.com/dromara/carbon"

// 使用 gitee 库
go get -u gitee.com/golang-module/carbon
go get -u gitee.com/dromara/carbon

import "gitee.com/golang-module/carbon"
import "gitee.com/dromara/carbon"
```

> v1 和 v2 版本区别请查阅 <a href="#常见问题">常见问题</a>,v1 版本不再更新,仅维护。
Expand Down Expand Up @@ -1569,7 +1569,7 @@ COPY ./zoneinfo.zip /usr/local/go/lib/time/zoneinfo.zip
#### 贡献者
感谢以下所有为 `Carbon` 做出贡献的人:

<a href="https://github.com/golang-module/carbon/graphs/contributors"><img src="https://contrib.rocks/image?repo=golang-module/carbon&max=100&columns=16"/></a>
<a href="https://github.com/dromara/carbon/graphs/contributors"><img src="https://contrib.rocks/image?repo=dromara/carbon&max=100&columns=16"/></a>

#### 赞助

Expand Down
26 changes: 13 additions & 13 deletions README.jp.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Carbon #

[![Carbon Release](https://img.shields.io/github/release/dromara/carbon.svg)](https://github.com/dromara/carbon/releases)
[![Go Test](https://github.com/golang-module/carbon/actions/workflows/test.yml/badge.svg)](https://github.com/dromara/carbon/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/golang-module/carbon/v2)](https://goreportcard.com/report/github.com/dromara/carbon/v2)
[![Go Test](https://github.com/dromara/carbon/actions/workflows/test.yml/badge.svg)](https://github.com/dromara/carbon/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/dromara/carbon/v2)](https://goreportcard.com/report/github.com/dromara/carbon/v2)
[![Go Coverage](https://codecov.io/gh/dromara/carbon/branch/master/graph/badge.svg)](https://codecov.io/gh/dromara/carbon)
[![Carbon Doc](https://img.shields.io/badge/go.dev-reference-brightgreen?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/dromara/carbon/v2)
[![License](https://img.shields.io/github/license/dromara/carbon)](https://github.com/dromara/carbon/blob/master/LICENSE)
Expand All @@ -17,9 +17,9 @@ Carbon は [awesome-go](https://github.com/avelino/awesome-go#date-and-time "awe

#### 倉庫所在地

[github.com/dromara/carbon](https://github.com/golang-module/carbon "github.com/golang-module/carbon")
[github.com/dromara/carbon](https://github.com/dromara/carbon "github.com/dromara/carbon")

[gitee.com/dromara/carbon](https://gitee.com/golang-module/carbon "gitee.com/golang-module/carbon")
[gitee.com/dromara/carbon](https://gitee.com/dromara/carbon "gitee.com/dromara/carbon")

[gitcode.com/dromara/carbon](https://gitcode.com/dromara/carbon "gitcode.com/dromara/carbon")

Expand All @@ -29,29 +29,29 @@ Carbon は [awesome-go](https://github.com/avelino/awesome-go#date-and-time "awe

```go
// github倉庫を使う
go get -u github.com/golang-module/carbon/v2
go get -u github.com/dromara/carbon/v2

import "github.com/golang-module/carbon/v2"
import "github.com/dromara/carbon/v2"


// gitee倉庫を使う
go get -u gitee.com/golang-module/carbon/v2
go get -u gitee.com/dromara/carbon/v2

import "gitee.com/golang-module/carbon/v2"
import "gitee.com/dromara/carbon/v2"
```

##### Golangバージョンは1.17より小さいです (必要)

```go
// github倉庫を使う
go get -u github.com/golang-module/carbon
go get -u github.com/dromara/carbon

import "github.com/golang-module/carbon"
import "github.com/dromara/carbon"

// gitee倉庫を使う
go get -u gitee.com/golang-module/carbon
go get -u gitee.com/dromara/carbon

import "gitee.com/golang-module/carbon"
import "gitee.com/dromara/carbon"
```

> v1とv2の違いについては、<a href="#人気のある問題">人気のある問題</a>をご覧ください,v1 は更新されなくなり、維持されるだけです。
Expand Down Expand Up @@ -1553,7 +1553,7 @@ invalid timezone "xxx", please see the file "$GOROOT/lib/time/zoneinfo.zip" for
#### 寄稿者
`Carbon` に貢献してくれた以下のすべてに感謝します:

<a href="https://github.com/golang-module/carbon/graphs/contributors"><img src="https://contrib.rocks/image?repo=golang-module/carbon&max=100&columns=16"/></a>
<a href="https://github.com/dromara/carbon/graphs/contributors"><img src="https://contrib.rocks/image?repo=dromara/carbon&max=100&columns=16"/></a>

#### スポンサー

Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Carbon

[![Carbon Release](https://img.shields.io/github/release/dromara/carbon.svg)](https://github.com/dromara/carbon/releases)
[![Go Test](https://github.com/golang-module/carbon/actions/workflows/test.yml/badge.svg)](https://github.com/dromara/carbon/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/golang-module/carbon/v2)](https://goreportcard.com/report/github.com/dromara/carbon/v2)
[![Go Test](https://github.com/dromara/carbon/actions/workflows/test.yml/badge.svg)](https://github.com/dromara/carbon/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/dromara/carbon/v2)](https://goreportcard.com/report/github.com/dromara/carbon/v2)
[![Go Coverage](https://codecov.io/gh/dromara/carbon/branch/master/graph/badge.svg)](https://codecov.io/gh/dromara/carbon)
[![Carbon Doc](https://img.shields.io/badge/go.dev-reference-brightgreen?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/dromara/carbon/v2)
[![License](https://img.shields.io/github/license/dromara/carbon)](https://github.com/dromara/carbon/blob/master/LICENSE)
Expand All @@ -16,9 +16,9 @@ by [awesome-go](https://github.com/avelino/awesome-go#date-and-time "awesome-go"

#### Repository

[github.com/dromara/carbon](https://github.com/golang-module/carbon "github.com/golang-module/carbon")
[github.com/dromara/carbon](https://github.com/dromara/carbon "github.com/dromara/carbon")

[gitee.com/dromara/carbon](https://gitee.com/golang-module/carbon "gitee.com/golang-module/carbon")
[gitee.com/dromara/carbon](https://gitee.com/dromara/carbon "gitee.com/dromara/carbon")

[gitcode.com/dromara/carbon](https://gitcode.com/dromara/carbon "gitcode.com/dromara/carbon")

Expand All @@ -28,28 +28,28 @@ by [awesome-go](https://github.com/avelino/awesome-go#date-and-time "awesome-go"

```go
// By github
go get -u github.com/golang-module/carbon/v2
go get -u github.com/dromara/carbon/v2

import "github.com/golang-module/carbon/v2"
import "github.com/dromara/carbon/v2"

// By gitee
go get -u gitee.com/golang-module/carbon/v2
go get -u gitee.com/dromara/carbon/v2

import "gitee.com/golang-module/carbon/v2"
import "gitee.com/dromara/carbon/v2"
```

##### Go version < 1.17 (must)

```go
// By github
go get -u github.com/golang-module/carbon
go get -u github.com/dromara/carbon

import "github.com/golang-module/carbon"
import "github.com/dromara/carbon"

// By gitee
go get -u gitee.com/golang-module/carbon
go get -u gitee.com/dromara/carbon

import "gitee.com/golang-module/carbon"
import "gitee.com/dromara/carbon"
```

> Please refer to <a href="#faq">FAQ</a> for the difference between v1 and v2, v1 is no longer updated, only maintained.
Expand Down Expand Up @@ -1549,7 +1549,7 @@ invalid timezone "xxx", please see the file "$GOROOT/lib/time/zoneinfo.zip" for
#### Contributors
Thanks to all of the following who contributed to `Carbon`:

<a href="https://github.com/golang-module/carbon/graphs/contributors"><img src="https://contrib.rocks/image?repo=golang-module/carbon&max=100&columns=16" /></a>
<a href="https://github.com/dromara/carbon/graphs/contributors"><img src="https://contrib.rocks/image?repo=dromara/carbon&max=100&columns=16" /></a>

#### Sponsors

Expand Down
6 changes: 3 additions & 3 deletions calendar.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package carbon

import (
"github.com/golang-module/carbon/v2/calendar/julian"
"github.com/golang-module/carbon/v2/calendar/lunar"
"github.com/golang-module/carbon/v2/calendar/persian"
"github.com/dromara/carbon/v2/calendar/julian"
"github.com/dromara/carbon/v2/calendar/lunar"
"github.com/dromara/carbon/v2/calendar/persian"
)

// Lunar converts Carbon instance to Lunar instance.
Expand Down
2 changes: 1 addition & 1 deletion calendar/julian/julian.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"time"

"github.com/golang-module/carbon/v2/calendar"
"github.com/dromara/carbon/v2/calendar"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions calendar/lunar/lunar.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

"github.com/golang-module/carbon/v2/calendar"
"github.com/dromara/carbon/v2/calendar"
)

var (
Expand Down Expand Up @@ -167,7 +167,7 @@ func (l Lunar) ToGregorian() (g Gregorian) {
if l.isLeapMonth {
offset += days
}
// https://github.com/golang-module/carbon/issues/219
// https://github.com/dromara/carbon/issues/219
ts := int64(offset+l.day)*86400 - int64(2206512000) + int64(l.hour)*3600 + int64(l.minute)*60 + int64(l.second)
g.Time = time.Unix(ts, 0)
return
Expand Down
4 changes: 2 additions & 2 deletions calendar/persian/persian.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"math"
"time"

"github.com/golang-module/carbon/v2/calendar"
"github.com/golang-module/carbon/v2/calendar/julian"
"github.com/dromara/carbon/v2/calendar"
"github.com/dromara/carbon/v2/calendar/julian"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion calendar_unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func TestCarbon_CreateFromPersian(t *testing.T) {
}
}

// https://github.com/golang-module/carbon/issues/246
// https://github.com/dromara/carbon/issues/246
func TestCarbon_Issue246(t *testing.T) {
tests := []struct {
name string
Expand Down
2 changes: 1 addition & 1 deletion carbon.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @Package carbon
// @Description a simple, semantic and developer-friendly golang package for datetime
// @Page github.com/golang-module/carbon
// @Page github.com/dromara/carbon
// @Developer gouguoyin
// @Blog www.gouguoyin.cn
// @Email contact@gouguoyin.cn
Expand Down
4 changes: 2 additions & 2 deletions encoding_unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ func TestCarbon_TimestampToInt64(t *testing.T) {
}
}

// https://github.com/golang-module/carbon/issues/225
// https://github.com/dromara/carbon/issues/225
func TestCarbon_Issue225(t *testing.T) {
emptyStr := `{
"birthday1":"",
Expand Down Expand Up @@ -392,7 +392,7 @@ func TestCarbon_Issue225(t *testing.T) {
assert.Nil(t, nullErr)
}

// https://github.com/golang-module/carbon/issues/240
// https://github.com/dromara/carbon/issues/240
func TestCarbon_Issue240(t *testing.T) {
jsonStr := `{
"birthday1":"",
Expand Down
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/golang-module/carbon/v2
module github.com/dromara/carbon/v2

go 1.17

Expand Down
2 changes: 1 addition & 1 deletion outputer_unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2652,7 +2652,7 @@ func TestCarbon_ToStdTime(t *testing.T) {
assert.Equal(t, expected, actual)
}

// https://github.com/golang-module/carbon/issues/200
// https://github.com/dromara/carbon/issues/200
func TestCarbon_Issue200(t *testing.T) {
tests1 := []struct {
name string
Expand Down
6 changes: 3 additions & 3 deletions parser_unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func TestCarbon_ParseByLayout(t *testing.T) {
}
}

// https://github.com/golang-module/carbon/issues/202
// https://github.com/dromara/carbon/issues/202
func TestCarbon_Issue202(t *testing.T) {
tests := []struct {
name string
Expand Down Expand Up @@ -193,7 +193,7 @@ func TestError_ParseByFormat(t *testing.T) {
assert.NotNil(t, ParseByFormat("xxx", "Y-m-d", PRC).Error, "It should catch an exception in ParseByFormat")
}

// https://github.com/golang-module/carbon/issues/206
// https://github.com/dromara/carbon/issues/206
func TestCarbon_Issue206(t *testing.T) {
tests := []struct {
name string
Expand Down Expand Up @@ -230,7 +230,7 @@ func TestCarbon_Issue206(t *testing.T) {
}
}

// https://github.com/golang-module/carbon/issues/232
// https://github.com/dromara/carbon/issues/232
func TestCarbon_Issue232(t *testing.T) {
tests := []struct {
name string
Expand Down

0 comments on commit 720a07a

Please sign in to comment.