INNER CODE UNIT · Go
stringForStringPointer
kubernetes/k8s.io · infra/aws/aws-costexplorer-export/main.go:178
func stringForStringPointer(input *string) string {
if input == nil {
return ""
}
return *input
}
func generateUUIDFromInterface(i interface{}) string {
yamlString := marshalAsYAML(i)
sumBytes := sha256.Sum256([]byte(yamlString))
sum := fmt.Sprintf("%x", sumBytes)
sum = sum[:32]
id, _ := uuid.Parse(sum)
return id.String()
}
// usageClient stores the client for costexplorer
type usageClient struct {