code: func (page *Page) getTitle(text []byte) error {
  	startTag := []byte("<title>")
  	startIndex := bytes.Index(text, startTag)
  
  	endTag := []byte("</title>")
  	endIndex := bytes.Index(text, endTag)
  
  	if startIndex != -1 && endIndex != -1 {
  		title := text[startIndex+len(startTag) : endIndex]
  
  		if len(title) < 1 || !isTitle(title) {
  			return ErrTitleNotFound
  		}
  
  		page.Title = string(title)
  	} else {
  		return ErrTitleNotFound
  	}
  
  	return nil
  }
docs: // getTitle parses the title from an XML representation of a Wikipedia page.
  // In the event of an error or malformed XML, it will return ErrTitleNotFound.