☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
method14.go
☽
☼
_test/method14.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
func
main() {
4
o :=
Coord
{
3
,
4
}
5
println(o.
dist
())
6
}
7
8
func
(c *
Coord
)
dist
()
int
{
return
c.
x
*c.
x
+ c.
y
*c.
y
}
9
10
type
Coord
struct
{
11
x
,
y
int
12
}
13
14
// Output:
15
// 25