title: How to extend a Go interface to another interface?
body: <p>I have a Go interface: </p>
  
  <pre><code>type People interface {
      GetName() string
      GetAge() string
  }
  </code></pre>
  
  <p>Now I want another interface <code>Student</code>:</p>
  
  <p>1.</p>
  
  <pre><code>type Student interface {
      GetName() string
      GetAge() string
      GetScore() int
      GetSchoolName() string
  }
  </code></pre>
  
  <p>But I don't want to write the duplicate function <code>GetName</code> and <code>GetAge</code>.</p>
  
  <p>Is there a way to avoid write <code>GetName</code> and <code>GetAge</code> in <code>Student</code> interface ? like: </p>
  
  <p>2.</p>
  
  <pre><code>type Student interface {
      People interface
      GetScore() int
      GetSchoolName() string
  }
  </code></pre>