Example #1
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"]
	// }
}
Example #2
0
File: api.go Project: eswdd/bosun
// String returns the string representation
func (s ListMetricsOutput) String() string {
	return awsutil.Prettify(s)
}
Example #3
0
File: api.go Project: eswdd/bosun
// String returns the string representation
func (s GetMetricStatisticsOutput) String() string {
	return awsutil.Prettify(s)
}
Example #4
0
File: api.go Project: eswdd/bosun
// String returns the string representation
func (s EnableAlarmActionsOutput) String() string {
	return awsutil.Prettify(s)
}
Example #5
0
File: api.go Project: eswdd/bosun
// String returns the string representation
func (s DisableAlarmActionsInput) String() string {
	return awsutil.Prettify(s)
}
Example #6
0
File: api.go Project: eswdd/bosun
// String returns the string representation
func (s DimensionFilter) String() string {
	return awsutil.Prettify(s)
}
Example #7
0
File: api.go Project: eswdd/bosun
// String returns the string representation
func (s DescribeAlarmsOutput) String() string {
	return awsutil.Prettify(s)
}
Example #8
0
File: api.go Project: eswdd/bosun
// String returns the string representation
func (s PutMetricDataOutput) String() string {
	return awsutil.Prettify(s)
}
Example #9
0
File: api.go Project: eswdd/bosun
// String returns the string representation
func (s DescribeAlarmHistoryInput) String() string {
	return awsutil.Prettify(s)
}
Example #10
0
File: api.go Project: eswdd/bosun
// String returns the string representation
func (s DeleteAlarmsInput) String() string {
	return awsutil.Prettify(s)
}
Example #11
0
File: api.go Project: eswdd/bosun
// String returns the string representation
func (s Datapoint) String() string {
	return awsutil.Prettify(s)
}
Example #12
0
File: api.go Project: eswdd/bosun
// String returns the string representation
func (s AlarmHistoryItem) String() string {
	return awsutil.Prettify(s)
}
Example #13
0
File: api.go Project: eswdd/bosun
// String returns the string representation
func (s StatisticSet) String() string {
	return awsutil.Prettify(s)
}
Example #14
0
File: api.go Project: eswdd/bosun
// String returns the string representation
func (s SetAlarmStateOutput) String() string {
	return awsutil.Prettify(s)
}
Example #15
0
File: api.go Project: eswdd/bosun
// String returns the string representation
func (s Metric) String() string {
	return awsutil.Prettify(s)
}
Example #16
0
File: api.go Project: eswdd/bosun
// String returns the string representation
func (s DescribeAlarmsForMetricInput) String() string {
	return awsutil.Prettify(s)
}
Example #17
0
File: api.go Project: eswdd/bosun
// String returns the string representation
func (s PutMetricAlarmInput) String() string {
	return awsutil.Prettify(s)
}