Starting with code like:
type Foo struct {
V bool
}
func (f Foo) bar() bool {
return f.V
}
Is it allowed to change to func (f *Foo) bar() bool
without incrementing the major version number? That is, assuming you know there are no thread safety issues with your type. If so, the reverse change is allowed too, correct?
Any code that called the function regardless of whether the variable was a value or a pointer would continue to compile and work as expected after both changes, as far as I can tell.