You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
cpy.New currently requires that the user pass cpy.IgnoreAllUnexported. Document this requirement, or change it.
We require that the user specify this option because it isn't clear what the correct default handling of unexported fields is. (See TODO in the code detailing various possibilities.) If we're confident that there is no natural default and the user will always be required to pick a behavior, perhaps we should promote this option to the function signature:
type Mode int
const (
IgnoreAllUnexported Mode = iota
)
func New(mode Mode, opts ...Option) *Machine { ... }
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
cpy.New
currently requires that the user passcpy.IgnoreAllUnexported
. Document this requirement, or change it.We require that the user specify this option because it isn't clear what the correct default handling of unexported fields is. (See
TODO
in the code detailing various possibilities.) If we're confident that there is no natural default and the user will always be required to pick a behavior, perhaps we should promote this option to the function signature:The text was updated successfully, but these errors were encountered: