Help us shape the future of Go! Take the 2026 Go Developer Survey

expanders

package
v1.12.6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr added in v1.11.0

func BoolPtr(b bool) *bool

func IntPtr

func IntPtr[I int32 | int64](i *I) *int

func JSONStringToObject added in v1.12.6

func JSONStringToObject(s string) (map[string]interface{}, error)

JSONStringToObject parses a JSON-object string attribute (iac_input_data.data, wf_step_input_data.data, workflow_run_payload, stack_run_payload) for the API. It returns the parse error instead of replacing invalid input with an empty object, as the helpers it replaced did: a silent {} sent the user's inputs nowhere and only surfaced as "Provider produced inconsistent result after apply". "" means no data and returns nil. Valid JSON that isn't an object (an array, a string, null) is an error too, since the API expects an object.

func MapStringString added in v1.9.0

func MapStringString(ctx context.Context, input types.Map) (map[string]string, diag.Diagnostics)

func StringList

func StringList(ctx context.Context, in types.List) ([]string, diag.Diagnostics)

StringList accepts a `types.List` and returns a slice of strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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