private TypeRec getTypeRec(long offset, boolean cacheOnly) throws IOException {
		if (offset == 0) {
			return null;
		}
		TypeRec rec = typeOffsetIndex.get(offset);
		if (rec != null || cacheOnly) {
			return rec;
		}

		GoType goType = readType(offset);
		return getTypeRec(goType);
	}
Discovers available golang types

@param monitor {@link TaskMonitor}
@throws IOException if error reading data or cancelled
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/rtti/GoTypeManager.java