mirror of
https://gitee.com/dromara/carbon.git
synced 2024-12-02 04:07:36 +08:00
统一缩进
This commit is contained in:
parent
3899ec39dc
commit
503fe58157
28
README.md
28
README.md
@ -1265,20 +1265,20 @@ type Person struct {
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
person := Person {
|
person := Person {
|
||||||
Name: "gouguoyin",
|
Name: "gouguoyin",
|
||||||
Age: 18,
|
Age: 18,
|
||||||
Birthday1: carbon.Now().SubYears(18).ToDateTimeStruct(),
|
Birthday1: carbon.Now().SubYears(18).ToDateTimeStruct(),
|
||||||
Birthday2: carbon.Now().SubYears(18).ToDateTimeMilliStruct(),
|
Birthday2: carbon.Now().SubYears(18).ToDateTimeMilliStruct(),
|
||||||
Birthday3: carbon.Now().SubYears(18).ToDateTimeMicroStruct(),
|
Birthday3: carbon.Now().SubYears(18).ToDateTimeMicroStruct(),
|
||||||
Birthday4: carbon.Now().SubYears(18).ToDateTimeNanoStruct(),
|
Birthday4: carbon.Now().SubYears(18).ToDateTimeNanoStruct(),
|
||||||
GraduatedAt1: carbon.Now().ToDateStruct(),
|
GraduatedAt1: carbon.Now().ToDateStruct(),
|
||||||
GraduatedAt2: carbon.Now().ToDateMilliStruct(),
|
GraduatedAt2: carbon.Now().ToDateMilliStruct(),
|
||||||
GraduatedAt3: carbon.Now().ToDateMicroStruct(),
|
GraduatedAt3: carbon.Now().ToDateMicroStruct(),
|
||||||
GraduatedAt4: carbon.Now().ToDateNanoStruct(),
|
GraduatedAt4: carbon.Now().ToDateNanoStruct(),
|
||||||
CreatedAt1: carbon.Now().ToTimestampStruct(),
|
CreatedAt1: carbon.Now().ToTimestampStruct(),
|
||||||
CreatedAt2: carbon.Now().ToTimestampMilliStruct(),
|
CreatedAt2: carbon.Now().ToTimestampMilliStruct(),
|
||||||
CreatedAt3: carbon.Now().ToTimestampMicroStruct(),
|
CreatedAt3: carbon.Now().ToTimestampMicroStruct(),
|
||||||
CreatedAt4: carbon.Now().ToTimestampNanoStruct(),
|
CreatedAt4: carbon.Now().ToTimestampNanoStruct(),
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user