Table of Contents

Go - Named Type

About

A type declaration makes it possible to give a name to an existing type.

Example

type Point struct{ X, Y int }
var p Point