For more information, refer to Should I define methods on values or pointers? in the Go FAQ.
예:
type S struct{ } func (s *S) fun() {} func (s S) fun2() {}