by MrBuddyCasino · 7y ago · 0 comments
func (q Query) GroupBy(field string) Query {...}
PROCEDURE (q : Query) GroupBy*(field: String): Query;
BEGIN
(* .... *)
END GroupBy;Note that there are a few odd bits to Go methods: the receiver can be a value or a pointer, and if the receiver is a pointer it might be null, because method calls on concrete types are statically dispatched so
type S struct{}
func (self *S) Foo() {
fmt.Printf("%v\n", self)
}
func main() {
var s *S
s.Foo()
}
will print "<nil>".