func compareObjects(t *testing.T, expected interface{}, actual interface{}) { if !reflect.DeepEqual(expected, actual) { t.Errorf("\nExpected %s:\n%s\nActual %s:\n%s\n", reflect.ValueOf(expected).Kind(), awsutil.Prettify(expected), reflect.ValueOf(actual).Kind(), awsutil.Prettify(actual)) } }
func ExampleCopyOf() { type Foo struct { A int B []*string } // Create the initial value str1 := "hello" str2 := "bye bye" f1 := &Foo{A: 1, B: []*string{&str1, &str2}} // Do the copy v := awsutil.CopyOf(f1) var f2 *Foo = v.(*Foo) // Print the result fmt.Println(awsutil.Prettify(f2)) // Output: // { // A: 1, // B: ["hello","bye bye"] // } }
// String returns the string representation func (s CreateAssociationBatchRequestEntry) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s ListAssociationsOutput) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s FailedCreateWorkspaceRequest) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s DocumentFilter) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s FailedCreateAssociation) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s DeleteDocumentInput) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s DescribeDocumentOutput) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s TerminateWorkspacesOutput) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s UserStorage) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s RebuildWorkspacesOutput) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s TerminateRequest) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s RebuildRequest) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s RebootWorkspacesInput) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s FailedWorkspaceChangeRequest) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s CreateAssociationOutput) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s WorkspaceBundle) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s DeleteAssociationInput) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s ListDocumentsOutput) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s DescribeAssociationOutput) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s UpdateAssociationStatusOutput) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s DocumentDescription) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s AssociationDescription) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s DocumentIdentifier) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s DescribeWorkspaceDirectoriesInput) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s GetDocumentOutput) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s AssociationStatus) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s AssociationFilter) String() string { return awsutil.Prettify(s) }
// String returns the string representation func (s DescribeWorkspacesOutput) String() string { return awsutil.Prettify(s) }