title: What (exactly) does the type keyword do in go?
body: <p>I've been reading <a href="https://tour.golang.org/list" rel="noreferrer">A Tour of Go</a> to learn <a href="https://golang.org" rel="noreferrer">Go-Lang</a> and so far it's going good.</p>
  <p>I'm currently on the <a href="https://tour.golang.org/moretypes/3" rel="noreferrer">Struct Fields</a> Lesson and here is the sample code from the right hand side:</p>
  <pre><code>package main
  
  import &quot;fmt&quot;
  
  type Vertex struct {
    X int
    Y int
  }
  
  func main() {
    v := Vertex{1, 2}
    v.X = 4
    fmt.Println(v.X)
  }
  </code></pre>
  <p>Take a look at line 3:</p>
  <pre><code>type Vertex struct {
  </code></pre>
  <p>What I don't understand is, what does the <code>type</code> keyword do and why is it there?</p>