Go语言之面向对象 Jackey Golang 2019-04-11 2,960 次浏览 Golang, 面向对象 面向对象 [codesyntax lang="c"] // main package main import ( "fmt" ) /*func compare(a, b int) bool { return a < b }*/ type Point struct { px float32 py float32 } func (point *Point) setXY(...