更新文档

This commit is contained in:
gouguoyin 2024-11-25 16:14:55 +08:00
parent 95e42f1f46
commit 0ae153b9b8
3 changed files with 51 additions and 51 deletions

View File

@ -1233,22 +1233,22 @@ person := Person {
Name: "gouguoyin",
Age: 18,
Birthday0: carbon.Now().SubYears(18),
Birthday1: carbon.Now().SubYears(18).ToDateTimeStruct(),
Birthday2: carbon.Now().SubYears(18).ToDateTimeMilliStruct(),
Birthday3: carbon.Now().SubYears(18).ToDateTimeMicroStruct(),
Birthday4: carbon.Now().SubYears(18).ToDateTimeNanoStruct(),
GraduatedAt1: carbon.Now().ToDateStruct(),
GraduatedAt2: carbon.Now().ToDateMilliStruct(),
GraduatedAt3: carbon.Now().ToDateMicroStruct(),
GraduatedAt4: carbon.Now().ToDateNanoStruct(),
OperatedAt1: carbon.Now().ToTimeStruct(),
OperatedAt2: carbon.Now().ToTimeMilliStruct(),
OperatedAt3: carbon.Now().ToTimeMicroStruct(),
OperatedAt4: carbon.Now().ToTimeNanoStruct(),
CreatedAt1: carbon.Now().ToTimestampStruct(),
CreatedAt2: carbon.Now().ToTimestampMilliStruct(),
CreatedAt3: carbon.Now().ToTimestampMicroStruct(),
CreatedAt4: carbon.Now().ToTimestampNanoStruct(),
Birthday1: carbon.NewDateTime(carbon.Now().SubYears(18)),
Birthday2: carbon.NewDateTimeMilli(carbon.Now().SubYears(18)),
Birthday3: carbon.NewDateTimeMicro(carbon.Now().SubYears(18)),
Birthday4: carbon.NewDateTimeNano(carbon.Now().SubYears(18)),
GraduatedAt1: carbon.NewDate(carbon.Now()),
GraduatedAt2: carbon.NewDateMilli(carbon.Now()),
GraduatedAt3: carbon.NewDateMicro(carbon.Now()),
GraduatedAt4: carbon.NewDateNano(carbon.Now()),
OperatedAt1: carbon.NewTime(carbon.Now()),
OperatedAt2: carbon.NewTimeMilli(carbon.Now()),
OperatedAt3: carbon.NewTimeMicro(carbon.Now()),
OperatedAt4: carbon.NewTimeNano(carbon.Now()),
CreatedAt1: carbon.NewTimestamp(carbon.Now()),
CreatedAt2: carbon.NewTimestampMilli(carbon.Now()),
CreatedAt3: carbon.NewTimestampMicro(carbon.Now()),
CreatedAt4: carbon.NewTimestampNano(carbon.Now()),
}
data, err := json.Marshal(&person)

View File

@ -1233,22 +1233,22 @@ person := Person {
Name: "gouguoyin",
Age: 18,
Birthday0: carbon.Now().SubYears(18),
Birthday1: carbon.Now().SubYears(18).ToDateTimeStruct(),
Birthday2: carbon.Now().SubYears(18).ToDateTimeMilliStruct(),
Birthday3: carbon.Now().SubYears(18).ToDateTimeMicroStruct(),
Birthday4: carbon.Now().SubYears(18).ToDateTimeNanoStruct(),
GraduatedAt1: carbon.Now().ToDateStruct(),
GraduatedAt2: carbon.Now().ToDateMilliStruct(),
GraduatedAt3: carbon.Now().ToDateMicroStruct(),
GraduatedAt4: carbon.Now().ToDateNanoStruct(),
OperatedAt1: carbon.Now().ToTimeStruct(),
OperatedAt2: carbon.Now().ToTimeMilliStruct(),
OperatedAt3: carbon.Now().ToTimeMicroStruct(),
OperatedAt4: carbon.Now().ToTimeNanoStruct(),
CreatedAt1: carbon.Now().ToTimestampStruct(),
CreatedAt2: carbon.Now().ToTimestampMilliStruct(),
CreatedAt3: carbon.Now().ToTimestampMicroStruct(),
CreatedAt4: carbon.Now().ToTimestampNanoStruct(),
Birthday1: carbon.NewDateTime(carbon.Now().SubYears(18)),
Birthday2: carbon.NewDateTimeMilli(carbon.Now().SubYears(18)),
Birthday3: carbon.NewDateTimeMicro(carbon.Now().SubYears(18)),
Birthday4: carbon.NewDateTimeNano(carbon.Now().SubYears(18)),
GraduatedAt1: carbon.NewDate(carbon.Now()),
GraduatedAt2: carbon.NewDateMilli(carbon.Now()),
GraduatedAt3: carbon.NewDateMicro(carbon.Now()),
GraduatedAt4: carbon.NewDateNano(carbon.Now()),
OperatedAt1: carbon.NewTime(carbon.Now()),
OperatedAt2: carbon.NewTimeMilli(carbon.Now()),
OperatedAt3: carbon.NewTimeMicro(carbon.Now()),
OperatedAt4: carbon.NewTimeNano(carbon.Now()),
CreatedAt1: carbon.NewTimestamp(carbon.Now()),
CreatedAt2: carbon.NewTimestampMilli(carbon.Now()),
CreatedAt3: carbon.NewTimestampMicro(carbon.Now()),
CreatedAt4: carbon.NewTimestampNano(carbon.Now()),
}
data, err := json.Marshal(&person)

View File

@ -1227,22 +1227,22 @@ person := Person {
Name: "gouguoyin",
Age: 18,
Birthday0: carbon.Now().SubYears(18),
Birthday1: carbon.Now().SubYears(18).ToDateTimeStruct(),
Birthday2: carbon.Now().SubYears(18).ToDateTimeMilliStruct(),
Birthday3: carbon.Now().SubYears(18).ToDateTimeMicroStruct(),
Birthday4: carbon.Now().SubYears(18).ToDateTimeNanoStruct(),
GraduatedAt1: carbon.Now().ToDateStruct(),
GraduatedAt2: carbon.Now().ToDateMilliStruct(),
GraduatedAt3: carbon.Now().ToDateMicroStruct(),
GraduatedAt4: carbon.Now().ToDateNanoStruct(),
OperatedAt1: carbon.Now().ToTimeStruct(),
OperatedAt2: carbon.Now().ToTimeMilliStruct(),
OperatedAt3: carbon.Now().ToTimeMicroStruct(),
OperatedAt4: carbon.Now().ToTimeNanoStruct(),
CreatedAt1: carbon.Now().ToTimestampStruct(),
CreatedAt2: carbon.Now().ToTimestampMilliStruct(),
CreatedAt3: carbon.Now().ToTimestampMicroStruct(),
CreatedAt4: carbon.Now().ToTimestampNanoStruct(),
Birthday1: carbon.NewDateTime(carbon.Now().SubYears(18)),
Birthday2: carbon.NewDateTimeMilli(carbon.Now().SubYears(18)),
Birthday3: carbon.NewDateTimeMicro(carbon.Now().SubYears(18)),
Birthday4: carbon.NewDateTimeNano(carbon.Now().SubYears(18)),
GraduatedAt1: carbon.NewDate(carbon.Now()),
GraduatedAt2: carbon.NewDateMilli(carbon.Now()),
GraduatedAt3: carbon.NewDateMicro(carbon.Now()),
GraduatedAt4: carbon.NewDateNano(carbon.Now()),
OperatedAt1: carbon.NewTime(carbon.Now()),
OperatedAt2: carbon.NewTimeMilli(carbon.Now()),
OperatedAt3: carbon.NewTimeMicro(carbon.Now()),
OperatedAt4: carbon.NewTimeNano(carbon.Now()),
CreatedAt1: carbon.NewTimestamp(carbon.Now()),
CreatedAt2: carbon.NewTimestampMilli(carbon.Now()),
CreatedAt3: carbon.NewTimestampMicro(carbon.Now()),
CreatedAt4: carbon.NewTimestampNano(carbon.Now()),
}
data, err := json.Marshal(&person)