Closed emersion closed 7 months ago
Another solution would be to use pointers:
type CopyOptions struct {
Recursive *bool // defaults to true
Overwrite *bool // defaults to true
}
But it's cumbersome to set the fields (requires an intermediate variable).
Not super happy about the negative bool fields…