2020-01-30から1日間の記事一覧
つづき。 tour.golang.org kattsundesu.hatenablog.com Methods メソッドの定義(レーシーバー) package main import ( "fmt" "math" ) type Vertex struct { X, Y float64 } // Vertex型のレシーバーをもち、float64型の返り値をもつ、Absという名前の関数 f…
つづき。 tour.golang.org kattsundesu.hatenablog.com Methods メソッドの定義(レーシーバー) package main import ( "fmt" "math" ) type Vertex struct { X, Y float64 } // Vertex型のレシーバーをもち、float64型の返り値をもつ、Absという名前の関数 f…