the type of method binding of golang, when to pass the value and when to pass the pointer?
I have seen the following two ways of writing, but I don"t know how to distinguish between them. Please give me some guidance:
func (s *Widget) Do() {
//...
}
func (s Widget) Do() {
//...
}