Documentation
¶
Index ¶
- func DefaultIfEmpty(input string, defaultValue string) string
- func DefaultIfEmptyOrNil(input *string, defaultValue string) string
- func EmptyIfNil(input *string) string
- func EmptyPointerIfNil(input *string) *string
- func EnsureSuffix(input string, suffix string) string
- func FalseIfNil(input *bool) bool
- func NilIfEmpty(input string) *string
- func NilIfEmptyPointer(input *string) *string
- func NilIfFalse(input bool) *bool
- func ParseBool(input string) bool
- func ParseBoolPointer(input *string) *bool
- func StrPointer(input string) *string
- func UnEscapeDollar(input string) string
- func UnEscapeDollarInMap(fileMap map[string]string) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultIfEmpty ¶
func DefaultIfEmptyOrNil ¶
func EmptyIfNil ¶
func EmptyPointerIfNil ¶ added in v0.1.877
func EnsureSuffix ¶
func FalseIfNil ¶
func NilIfEmpty ¶
func NilIfEmptyPointer ¶
func NilIfFalse ¶
func ParseBoolPointer ¶
func StrPointer ¶ added in v0.1.525
func UnEscapeDollar ¶
func UnEscapeDollarInMap ¶ added in v0.1.903
UnEscapeDollarInMap is a naive way of unescaping strings that assumes any string whose entire contents is two dollar signs, an opening curly bracket, some content, and a closing curly bracket was meant to be a HCL interpolated string. Where this assumption doesn't hold, converters must write attributes manually rather than rely on this method. See ProjectConverter for an example where the description field is written out manually.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.