Skip to content

Commit

Permalink
Update content
Browse files Browse the repository at this point in the history
  • Loading branch information
gouguoyin committed Oct 12, 2024
1 parent 99fceb1 commit 3a016be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#### 安装使用

##### Golang 版本大于等于 1.16 (推荐)
##### Golang 版本大于等于 1.17 (推荐)

```go
// 使用 github 库
Expand All @@ -32,7 +32,7 @@ go get -u gitee.com/golang-module/carbon/v2
import "gitee.com/golang-module/carbon/v2"
```

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

```go
// 使用 github 库
Expand Down
4 changes: 2 additions & 2 deletions README.jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Carbon は [awesome-go](https://github.com/avelino/awesome-go#date-and-time "awe

#### インストール使用

##### Golangバージョンは1.16以上です (推奨)
##### Golangバージョンは1.17以上です (推奨)

```go
// github倉庫を使う
Expand All @@ -35,7 +35,7 @@ go get -u gitee.com/golang-module/carbon/v2
import "gitee.com/golang-module/carbon/v2"
```

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

```go
// github倉庫を使う
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ by [awesome-go](https://github.com/avelino/awesome-go#date-and-time "awesome-go"

#### Installation

##### Go version >= 1.16 (recommend)
##### Go version >= 1.17 (recommend)

```go
// By github
Expand All @@ -35,7 +35,7 @@ go get -u gitee.com/golang-module/carbon/v2
import "gitee.com/golang-module/carbon/v2"
```

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

```go
// By github
Expand All @@ -62,7 +62,7 @@ carbon.SetDefault(carbon.Default{
Layout: carbon.DateTimeLayout,
Timezone: carbon.Local,
WeekStartsAt: carbon.Sunday,
Locale: "en", // Value range: Translate file name in the lang directory, excluding file suffix
Locale: "en", // value range: translate file name in the lang directory, excluding file suffix
})
```
> Suggest setting in the entry file such as `main.go`
Expand Down

0 comments on commit 3a016be

Please sign in to comment.