예제 #1
0
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))
	}
}
예제 #2
0
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"]
	// }
}
예제 #3
0
// String returns the string representation
func (s CreateTrailInput) String() string {
	return awsutil.Prettify(s)
}
예제 #4
0
// String returns the string representation
func (s UpdateThingShadowOutput) String() string {
	return awsutil.Prettify(s)
}
예제 #5
0
// String returns the string representation
func (s SuggestModel) String() string {
	return awsutil.Prettify(s)
}
예제 #6
0
// String returns the string representation
func (s LookupAttribute) String() string {
	return awsutil.Prettify(s)
}
예제 #7
0
// String returns the string representation
func (s GetThingShadowInput) String() string {
	return awsutil.Prettify(s)
}
예제 #8
0
// String returns the string representation
func (s Event) String() string {
	return awsutil.Prettify(s)
}
예제 #9
0
// String returns the string representation
func (s ListPublicKeysOutput) String() string {
	return awsutil.Prettify(s)
}
예제 #10
0
// String returns the string representation
func (s PutEventsInput) String() string {
	return awsutil.Prettify(s)
}
예제 #11
0
// String returns the string representation
func (s PublicKey) String() string {
	return awsutil.Prettify(s)
}
예제 #12
0
// String returns the string representation
func (s UploadDocumentsOutput) String() string {
	return awsutil.Prettify(s)
}
예제 #13
0
// String returns the string representation
func (s Session) String() string {
	return awsutil.Prettify(s)
}
예제 #14
0
// String returns the string representation
func (s SuggestionMatch) String() string {
	return awsutil.Prettify(s)
}
예제 #15
0
// String returns the string representation
func (s SuggestStatus) String() string {
	return awsutil.Prettify(s)
}
예제 #16
0
// String returns the string representation
func (s SuggestOutput) String() string {
	return awsutil.Prettify(s)
}
예제 #17
0
// String returns the string representation
func (s DeleteTrailOutput) String() string {
	return awsutil.Prettify(s)
}
예제 #18
0
// String returns the string representation
func (s RemoveTagsOutput) String() string {
	return awsutil.Prettify(s)
}
예제 #19
0
// String returns the string representation
func (s DescribeTrailsOutput) String() string {
	return awsutil.Prettify(s)
}
예제 #20
0
// String returns the string representation
func (s ResourceTag) String() string {
	return awsutil.Prettify(s)
}
예제 #21
0
// String returns the string representation
func (s GetTrailStatusOutput) String() string {
	return awsutil.Prettify(s)
}
예제 #22
0
// String returns the string representation
func (s StartLoggingInput) String() string {
	return awsutil.Prettify(s)
}
예제 #23
0
// String returns the string representation
func (s ListTagsOutput) String() string {
	return awsutil.Prettify(s)
}
예제 #24
0
// String returns the string representation
func (s StopLoggingOutput) String() string {
	return awsutil.Prettify(s)
}
예제 #25
0
// String returns the string representation
func (s LookupEventsOutput) String() string {
	return awsutil.Prettify(s)
}
예제 #26
0
// String returns the string representation
func (s SearchOutput) String() string {
	return awsutil.Prettify(s)
}
예제 #27
0
// String returns the string representation
func (s PublishOutput) String() string {
	return awsutil.Prettify(s)
}
예제 #28
0
// String returns the string representation
func (s AddTagsInput) String() string {
	return awsutil.Prettify(s)
}
예제 #29
0
// String returns the string representation
func (s Trail) String() string {
	return awsutil.Prettify(s)
}
예제 #30
0
// String returns the string representation
func (s SearchStatus) String() string {
	return awsutil.Prettify(s)
}