示例#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"]
	// }
}
示例#2
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s DeleteRepositoryOutput) String() string {
	return awsutil.Prettify(s)
}
示例#3
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s CreateRepositoryInput) String() string {
	return awsutil.Prettify(s)
}
示例#4
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s CompleteLayerUploadOutput) String() string {
	return awsutil.Prettify(s)
}
示例#5
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s BatchGetImageOutput) String() string {
	return awsutil.Prettify(s)
}
示例#6
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s ImageIdentifier) String() string {
	return awsutil.Prettify(s)
}
示例#7
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s GetRepositoryPolicyOutput) String() string {
	return awsutil.Prettify(s)
}
示例#8
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s GetAuthorizationTokenOutput) String() string {
	return awsutil.Prettify(s)
}
示例#9
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s UploadLayerPartOutput) String() string {
	return awsutil.Prettify(s)
}
示例#10
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s Repository) String() string {
	return awsutil.Prettify(s)
}
示例#11
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s PutImageInput) String() string {
	return awsutil.Prettify(s)
}
示例#12
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s ListImagesOutput) String() string {
	return awsutil.Prettify(s)
}
示例#13
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s LayerFailure) String() string {
	return awsutil.Prettify(s)
}
示例#14
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s InitiateLayerUploadOutput) String() string {
	return awsutil.Prettify(s)
}
示例#15
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s DeleteRepositoryPolicyInput) String() string {
	return awsutil.Prettify(s)
}
示例#16
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s DescribeRepositoriesOutput) String() string {
	return awsutil.Prettify(s)
}
示例#17
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s AuthorizationData) String() string {
	return awsutil.Prettify(s)
}
示例#18
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s GetDownloadUrlForLayerOutput) String() string {
	return awsutil.Prettify(s)
}
示例#19
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s BatchCheckLayerAvailabilityOutput) String() string {
	return awsutil.Prettify(s)
}
示例#20
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s BatchDeleteImageInput) String() string {
	return awsutil.Prettify(s)
}
示例#21
0
文件: api.go 项目: rlister/ecr-login
// String returns the string representation
func (s ImageFailure) String() string {
	return awsutil.Prettify(s)
}