pulumi/pkg/codegen/go
Abhinav Gupta 025add9c3e
codegen/go: Implement pux.Input[T] for generated types (#13510)
For generated types that impleemnt `pulumi.Output`,
or those that implement `pulumi.Input` with a means of converting
themselves to a `pulumi.Output`,
also generate `ToOutput(context.Context) pux.Output[..]`
to satisfy the `pux.Input[T]` interface.

This allows all these generated types to be used with `pux.Apply`
and other type-safe generic APIs per #13057.

Resolves #13587
2023-08-28 16:42:37 +00:00
..
gen_program_test all: gofmt -w -s 2023-01-10 19:03:24 -08:00
doc.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
doc_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
gen.go codegen/go: Implement pux.Input[T] for generated types (#13510) 2023-08-28 16:42:37 +00:00
gen_crd2pulumi.go Merge #13136 2023-07-07 21:33:39 +00:00
gen_program.go Require Go 1.20 for Go Programgen (#13729) 2023-08-16 04:59:07 +00:00
gen_program_expression_test.go test(codegen/go): Fix broken TestLiteralExpression 2023-06-20 12:25:42 -07:00
gen_program_expressions.go Allow generating code for unknown invokes in non-strict mode 2023-07-10 15:05:18 +02:00
gen_program_json.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
gen_program_optionals.go [codegen/go] Improve optional params in invoke 2022-02-01 11:44:40 -08:00
gen_program_read_dir.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
gen_program_splat.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
gen_program_ternaries.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
gen_program_test.go programgen(go): Handle conflicting names in imported packages 2023-07-25 12:49:37 -07:00
gen_program_utils.go [programgen/dotnet,go] Implement singleOrNone intrinsic 2023-06-11 16:23:33 -07:00
gen_spill.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
gen_test.go Merge #13136 2023-07-07 21:33:39 +00:00
importer.go [go/sdk-gen] Implement option to override the name of the generated internal module (#13749) 2023-08-22 17:16:43 +00:00
test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
utilities.go pkg/codegen/go: Prefer contract.Assertf over contract.Assert 2023-02-13 16:27:39 -08:00
utilities_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00