Does anyone have a simple working example of golan...
# golang
a
Does anyone have a simple working example of golang pulumi code that uses the [NS1 provider's NewRecord function](https://www.pulumi.com/registry/packages/ns1/api-docs/record/#create) that they would be willing to share? - I searched and was not able to find one. I can't quite wrap my head around how to construct the Answers and Filters inputs
b
something like this?
Copy code
record, err := ns1.NewRecord(ctx, "test", &ns1.RecordArgs{
			Domain: pulumi.String("<http://example.com|example.com>"),
			Ttl:    <http://pulumi.Int|pulumi.Int>(300),
			Answers: ns1.RecordAnswerArray{
				ns1.RecordAnswerArgs{
					Answer: pulumi.String("something"),
				},
			},
			Filters: ns1.RecordFilterArray{
				ns1.RecordFilterArgs{
					Filter: pulumi.String("geotarget_country"),
				},
			},
		})
a
thanks, i think this does help