terraform-provider-gitea/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/string_kind.go

29 lines
668 B
Go
Raw Normal View History

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package tfprotov6
const (
// StringKindPlain indicates a string is plaintext, and should be
// interpreted as having no formatting information.
StringKindPlain StringKind = 0
// StringKindMarkdown indicates a string is markdown-formatted, and
// should be rendered using a Markdown renderer to correctly display
// its formatting.
StringKindMarkdown StringKind = 1
)
// StringKind indicates a formatting or encoding scheme for a string.
type StringKind int32
func (s StringKind) String() string {
switch s {
case 0:
return "PLAIN"
case 1:
return "MARKDOWN"
}
return "UNKNOWN"
}