func (v Value) GoString() string {
	var values []string
	if v.Arch != nil {
		values = append(values, fmt.Sprintf("Arch: %q", *v.Arch))
	}
	if v.CpuCores != nil {
		values = append(values, fmt.Sprintf("Cores: %v", *v.CpuCores))
	}
	if v.CpuPower != nil {
		values = append(values, fmt.Sprintf("CpuPower: %v", *v.CpuPower))
	}
	if v.Mem != nil {
		values = append(values, fmt.Sprintf("Mem: %v", *v.Mem))
	}
	if v.RootDisk != nil {
		values = append(values, fmt.Sprintf("RootDisk: %v", *v.RootDisk))
	}
	if v.InstanceRole != nil {
		values = append(values, fmt.Sprintf("InstanceRole: %q", *v.InstanceRole))
	}
	if v.InstanceType != nil {
		values = append(values, fmt.Sprintf("InstanceType: %q", *v.InstanceType))
	}
	if v.Container != nil {
		values = append(values, fmt.Sprintf("Container: %q", *v.Container))
	}
	if v.Tags != nil && *v.Tags != nil {
		values = append(values, fmt.Sprintf("Tags: %q", *v.Tags))
	} else if v.Tags != nil {
		values = append(values, "Tags: (*[]string)(nil)")
	}
	if v.Spaces != nil && *v.Spaces != nil {
		values = append(values, fmt.Sprintf("Spaces: %q", *v.Spaces))
	} else if v.Spaces != nil {
		values = append(values, "Spaces: (*[]string)(nil)")
	}
	if v.VirtType != nil {
		values = append(values, fmt.Sprintf("VirtType: %q", *v.VirtType))
	}
	if v.Zones != nil && *v.Zones != nil {
		values = append(values, fmt.Sprintf("Zones: %q", *v.Zones))
	} else if v.Zones != nil {
		values = append(values, "Zones: (*[]string)(nil)")
	}
	if v.AllocatePublicIP != nil {
		values = append(values, fmt.Sprintf("AllocatePublicIP: %v", *v.AllocatePublicIP))
	}
	return fmt.Sprintf("{%s}", strings.Join(values, ", "))
}
// GoString allows printing a constraints.Value nicely with the fmt
// package, especially when nested inside other types.
GoString allows printing a constraints.Value nicely with the fmt
package, especially when nested inside other types.
// GoString allows printing a constraints . Value nicely with the fmt // package especially when nested inside other types .
func (v Value) GoString() string {
	var values []string
	if v.Arch != nil {
		values = append(values, fmt.Sprintf("Arch: %q", *v.Arch))
	}
	if v.CpuCores != nil {
		values = append(values, fmt.Sprintf("Cores: %v", *v.CpuCores))
	}
	if v.CpuPower != nil {
		values = append(values, fmt.Sprintf("CpuPower: %v", *v.CpuPower))
	}
	if v.Mem != nil {
		values = append(values, fmt.Sprintf("Mem: %v", *v.Mem))
	}
	if v.RootDisk != nil {
		values = append(values, fmt.Sprintf("RootDisk: %v", *v.RootDisk))
	}
	if v.InstanceRole != nil {
		values = append(values, fmt.Sprintf("InstanceRole: %q", *v.InstanceRole))
	}
	if v.InstanceType != nil {
		values = append(values, fmt.Sprintf("InstanceType: %q", *v.InstanceType))
	}
	if v.Container != nil {
		values = append(values, fmt.Sprintf("Container: %q", *v.Container))
	}
	if v.Tags != nil && *v.Tags != nil {
		values = append(values, fmt.Sprintf("Tags: %q", *v.Tags))
	} else if v.Tags != nil {
		values = append(values, "Tags: (*[]string)(nil)")
	}
	if v.Spaces != nil && *v.Spaces != nil {
		values = append(values, fmt.Sprintf("Spaces: %q", *v.Spaces))
	} else if v.Spaces != nil {
		values = append(values, "Spaces: (*[]string)(nil)")
	}
	if v.VirtType != nil {
		values = append(values, fmt.Sprintf("VirtType: %q", *v.VirtType))
	}
	if v.Zones != nil && *v.Zones != nil {
		values = append(values, fmt.Sprintf("Zones: %q", *v.Zones))
	} else if v.Zones != nil {
		values = append(values, "Zones: (*[]string)(nil)")
	}
	if v.AllocatePublicIP != nil {
		values = append(values, fmt.Sprintf("AllocatePublicIP: %v", *v.AllocatePublicIP))
	}
	return fmt.Sprintf("{%s}", strings.Join(values, ", "))
}
func ( v Value ) GoString ( ) string { var values [ ] string if v . Arch != nil { values = append ( values , fmt . Sprintf ( " " , * v . Arch ) ) } if v . CpuCores != nil { values = append ( values , fmt . Sprintf ( " " , * v . CpuCores ) ) } if v . CpuPower != nil { values = append ( values , fmt . Sprintf ( " " , * v . CpuPower ) ) } if v . Mem != nil { values = append ( values , fmt . Sprintf ( " " , * v . Mem ) ) } if v . RootDisk != nil { values = append ( values , fmt . Sprintf ( " " , * v . RootDisk ) ) } if v . InstanceRole != nil { values = append ( values , fmt . Sprintf ( " " , * v . InstanceRole ) ) } if v . InstanceType != nil { values = append ( values , fmt . Sprintf ( " " , * v . InstanceType ) ) } if v . Container != nil { values = append ( values , fmt . Sprintf ( " " , * v . Container ) ) } if v . Tags != nil && * v . Tags != nil { values = append ( values , fmt . Sprintf ( " " , * v . Tags ) ) } else if v . Tags != nil { values = append ( values , " " ) } if v . Spaces != nil && * v . Spaces != nil { values = append ( values , fmt . Sprintf ( " " , * v . Spaces ) ) } else if v . Spaces != nil { values = append ( values , " " ) } if v . VirtType != nil { values = append ( values , fmt . Sprintf ( " " , * v . VirtType ) ) } if v . Zones != nil && * v . Zones != nil { values = append ( values , fmt . Sprintf ( " " , * v . Zones ) ) } else if v . Zones != nil { values = append ( values , " " ) } if v . AllocatePublicIP != nil { values = append ( values , fmt . Sprintf ( " " , * v . AllocatePublicIP ) ) } return fmt . Sprintf ( " " , strings . Join ( values , " " ) ) }
GoString allows printing a constraints.Value nicely with the fmt
package, especially when nested inside other types.
GoString allows printing a constraints . Value nicely with the fmt package especially when nested inside other types .