gobuch/golang-language-samples/type-definition/type-definition.go
2020-08-21 06:26:40 +02:00

14 lines
126 B
Go

package main
import "fmt"
type (
Point struct{ x, y float64 }
polar Point
)
func main() {
var p Point
fmt.Println(p)
}