Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
glassonion1 committed Aug 17, 2024
1 parent 3d729a7 commit 86cb659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"google.golang.org/protobuf/types/known/timestamppb"
)

func ExampleDeepCopy_Struct() {
func ExampleDeepCopy_struct() {
// It is a common, ordinary struct
type FromModel struct {
ID string `copier:"Id"`
Expand Down Expand Up @@ -42,7 +42,7 @@ func ExampleDeepCopy_Struct() {
// Output: ToModel object: &{xxxx R2D2 seconds:1590969600 seconds:1590969600}
}

func ExampleDeepCopy_Slice() {
func ExampleDeepCopy_slice() {
type FromModel struct {
ID string
Name string
Expand Down

0 comments on commit 86cb659

Please sign in to comment.