From 9261d6022a4c54dfa281460429e0cd8e922cb3ed Mon Sep 17 00:00:00 2001 From: Peleus <245629560@qq.com> Date: Thu, 30 Nov 2023 18:06:00 +0800 Subject: [PATCH] Fix json tag error --- README.cn.md | 18 +++++++++--------- README.jp.md | 16 ++++++++-------- README.md | 16 ++++++++-------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/README.cn.md b/README.cn.md index c1c645af..95ca3fdf 100644 --- a/README.cn.md +++ b/README.cn.md @@ -1260,15 +1260,15 @@ carbon.Parse("2020-03-21 21:00:00").Lunar().IsTwelfthDoubleHour() // true type Person struct { Name string `json:"name"` Age int `json:"age"` - Birthday1 carbon.DateTime `json:"birthday"` - Birthday2 carbon.DateTimeMilli `json:"birthday"` - Birthday3 carbon.DateTimeMicro `json:"birthday"` - Birthday4 carbon.DateTimeNano `json:"birthday"` - GraduatedAt1 carbon.Date `json:"graduated_at"` - GraduatedAt2 carbon.DateMilli `json:"graduated_at"` - GraduatedAt3 carbon.DateMicro `json:"graduated_at"` - GraduatedAt4 carbon.DateNano `json:"graduated_at"` - OperatedAt1 carbon.Time `json:"operated_at1"` + Birthday1 carbon.DateTime `json:"birthday1"` + Birthday2 carbon.DateTimeMilli `json:"birthday2"` + Birthday3 carbon.DateTimeMicro `json:"birthday3"` + Birthday4 carbon.DateTimeNano `json:"birthday4"` + GraduatedAt1 carbon.Date `json:"graduated_at1"` + GraduatedAt2 carbon.DateMilli `json:"graduated_at2"` + GraduatedAt3 carbon.DateMicro `json:"graduated_at3"` + GraduatedAt4 carbon.DateNano `json:"graduated_at4"` + OperatedAt1 carbon.Time `json:"operated_at1"` OperatedAt2 carbon.TimeMilli `json:"operated_at2"` OperatedAt3 carbon.TimeMicro `json:"operated_at3"` OperatedAt4 carbon.TimeNano `json:"operated_at4"` diff --git a/README.jp.md b/README.jp.md index dcdd8b22..219159de 100644 --- a/README.jp.md +++ b/README.jp.md @@ -1260,14 +1260,14 @@ carbon.Parse("2020-03-21 21:00:00").Lunar().IsTwelfthDoubleHour() // true type Person struct { Name string `json:"name"` Age int `json:"age"` - Birthday1 carbon.DateTime `json:"birthday"` - Birthday2 carbon.DateTimeMilli `json:"birthday"` - Birthday3 carbon.DateTimeMicro `json:"birthday"` - Birthday4 carbon.DateTimeNano `json:"birthday"` - GraduatedAt1 carbon.Date `json:"graduated_at"` - GraduatedAt2 carbon.DateMilli `json:"graduated_at"` - GraduatedAt3 carbon.DateMicro `json:"graduated_at"` - GraduatedAt4 carbon.DateNano `json:"graduated_at"` + Birthday1 carbon.DateTime `json:"birthday1"` + Birthday2 carbon.DateTimeMilli `json:"birthday2"` + Birthday3 carbon.DateTimeMicro `json:"birthday3"` + Birthday4 carbon.DateTimeNano `json:"birthday4"` + GraduatedAt1 carbon.Date `json:"graduated_at1"` + GraduatedAt2 carbon.DateMilli `json:"graduated_at2"` + GraduatedAt3 carbon.DateMicro `json:"graduated_at3"` + GraduatedAt4 carbon.DateNano `json:"graduated_at4"` OperatedAt1 carbon.Time `json:"operated_at1"` OperatedAt2 carbon.TimeMilli `json:"operated_at2"` OperatedAt3 carbon.TimeMicro `json:"operated_at3"` diff --git a/README.md b/README.md index ec69b732..d6a37787 100644 --- a/README.md +++ b/README.md @@ -1255,14 +1255,14 @@ carbon.Parse("2020-03-21 21:00:00").Lunar().IsTwelfthDoubleHour() // true type Person struct { Name string `json:"name"` Age int `json:"age"` - Birthday1 carbon.DateTime `json:"birthday"` - Birthday2 carbon.DateTimeMilli `json:"birthday"` - Birthday3 carbon.DateTimeMicro `json:"birthday"` - Birthday4 carbon.DateTimeNano `json:"birthday"` - GraduatedAt1 carbon.Date `json:"graduated_at"` - GraduatedAt2 carbon.DateMilli `json:"graduated_at"` - GraduatedAt3 carbon.DateMicro `json:"graduated_at"` - GraduatedAt4 carbon.DateNano `json:"graduated_at"` + Birthday1 carbon.DateTime `json:"birthday1"` + Birthday2 carbon.DateTimeMilli `json:"birthday2"` + Birthday3 carbon.DateTimeMicro `json:"birthday3"` + Birthday4 carbon.DateTimeNano `json:"birthday4"` + GraduatedAt1 carbon.Date `json:"graduated_at1"` + GraduatedAt2 carbon.DateMilli `json:"graduated_at2"` + GraduatedAt3 carbon.DateMicro `json:"graduated_at3"` + GraduatedAt4 carbon.DateNano `json:"graduated_at4"` OperatedAt1 carbon.Time `json:"operated_at1"` OperatedAt2 carbon.TimeMilli `json:"operated_at2"` OperatedAt3 carbon.TimeMicro `json:"operated_at3"`