1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 09:15:01 +03:00
semantic/test/fixtures/go/method-declarations.A.go
2017-11-07 16:28:17 -08:00

15 lines
230 B
Go

package main
func main() {}
func (self Person) Equals(other Person) bool {}
func (p *Point) Length() float64 {
return math.Sqrt(p.x * p.x + p.y * p.y)
}
func (p *Point) Scale(factor float64) {
p.x *= factor
p.y *= factor
}