import re


def get_major_version(from_go_version: str) -> str:
	"""
	Extracts the "major" version part of a full Go release version. ("major" to
	the Go project is the part of the version that most people think of as the
	major and minor versions - refer to examples).

	>>> get_major_version("1.23.45-6rc7")
	'1.23'
	>>> get_major_version("1.2.3")
	'1.2'
	>>> get_major_version("not a release version")
	''
	"""
	match = re.search(pattern=r'^\d+\.\d+', string=from_go_version)
	if match:
		return match.group(0)
	return ""