types

package
v0.0.67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptionalString

func OptionalString(s string) types.String

OptionalString converts a Go string to a types.String, returning StringNull if the input is an empty string, otherwise returning StringValue with the input.

func OptionalStringList

func OptionalStringList(ctx context.Context, s []string) (types.List, diag.Diagnostics)

OptionalStringList converts a Go string slice to a types.List, returning ListNull if the input slice is empty, otherwise returning a ListValueFrom with the input.

func OptionalStringSet added in v0.0.61

func OptionalStringSet(ctx context.Context, s []string) (types.Set, diag.Diagnostics)

OptionalStringSet converts a Go string slice to a types.Set, returning SetNull if the input slice is empty, otherwise returning a SetValueFrom with the input.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL