How does one instantiate this struct? The fields are unexported.
We tried this:
p := cloudflare.DeleteRulesetRuleParams{cfr.SRRRulesetID, cfr.SRRRulesetRuleID}
err := c.cfClient.DeleteRulesetRule(context.Background(), cloudflare.ZoneIdentifier(domainID), p)
but Go complains:
$ go build
# github.com/StackExchange/dnscontrol/v4/providers/cloudflare
providers/cloudflare/rest.go:391:42: implicit assignment to unexported field rulesetID in struct literal of type "github.com/cloudflare/cloudflare-go".DeleteRulesetRuleParams
providers/cloudflare/rest.go:391:60: implicit assignment to unexported field rulesetRuleID in struct literal of type "github.com/cloudflare/cloudflare-go".DeleteRulesetRuleParams
I feel like I'm missing something. Should the fields me exported or is there a constructor I'm unaware of? The other *Params structs export all their fields.
Confirmation
cloudflare-go version
v0.101.1-0.20240809030210-5dc300a49857
Go environment
Expected output
In https://github.com/cloudflare/cloudflare-go/pull/2833. the type DeleteRulesetRuleParams struct was added:
How does one instantiate this struct? The fields are unexported.
We tried this:
but Go complains:
I feel like I'm missing something. Should the fields me exported or is there a constructor I'm unaware of? The other
*Params
structs export all their fields.Thanks!
CC jacobbednarz for visibility.
Actual output
see above
Code demonstrating the issue
Steps to reproduce
see above
References
No response