Which programming language is this?
func (p *Point) Move(dx int) {
p.X += dx
}
Answer: Go
A receiver (func (p *Point)) before the function name is a Go pattern.
Play Programming Languages ▸
func (p *Point) Move(dx int) {
p.X += dx
}
Answer: Go