gobuch/golang-language-samples/type-definition/type-definition.go

14 lines
126 B
Go
Raw Permalink Normal View History

2020-08-21 04:26:40 +00:00
package main
import "fmt"
type (
Point struct{ x, y float64 }
polar Point
)
func main() {
var p Point
fmt.Println(p)
}