You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: aat_ankr_src.go
    path of file: ./repos/caire/vendor/github.com/go-text/typesetting/opentype/tables
    
    the code of the file until where you have to start completion: // SPDX-License-Identifier: Unlicense OR BSD-3-Clause

package tables

import "encoding/binary"

// Ankr is the anchor point table
// See - https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6ankr.html
type Ankr struct {
	version uint16 // Ve
    
func (ank Ankr) GetAnchor(glyph GlyphID, index int) (anchor AnkrAnchor) {
	offset, ok := ank.lookupTable.Class(glyph)
	if !ok || int(offset)+4 >= len(ank.glyphDataTable) {
		return anchor
	}

	count := int(binary.BigEndian.Uint32(ank.glyphDataTable[offset:]))
	if index >= count {
		return anchor // invalid index
	}

	indexStart := int(offset) + 4 + 4*index
	if len(ank.glyphDataTable) < indexStart+4 {
		return anchor // invalid table
	}
	anchor.X = int16(binary.BigEndian.Uint16(ank.glyphDataTable[indexStart:]))
	anchor.Y = int16(binary.BigEndian.Uint16(ank.glyphDataTable[indexStart+2:]))
	return anchor
}