public static String getProgramGOARCH(Program program) {
		String langArch =
			"%s_%d".formatted(
				getLanguageArch(program.getLanguageID().getIdAsString()).toLowerCase(),
				program.getDefaultPointerSize() * 8);

		String goarch = GHIDRA_GOARCH_MAP.getOrDefault(langArch, "unknown");
		if (GOLANG_DUALENDIAN_ARCH.contains(goarch) && !program.getMemory().isBigEndian()) {
			// golang seems to mark the LE variant and assumes BE as the default if not marked
			goarch += "le";
		}
		return goarch;
	}
Returns a Golang "GOARCH" string created by a mapping from the Ghidra program's language (arch).

@param program {@link Program}
@return Golang "GOARCH" string
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/GoBuildInfo.java