private DataType getReturnTypeForSliceFunc(GoType goType) {
			try {
				GoTypeManager goTypes = goBinary.getGoTypes();
				GoType sliceGoType = goTypes.findGoType("[]" + goTypes.getTypeName(goType));
				DataType dt = sliceGoType != null ? goTypes.getGhidraDataType(sliceGoType) : null;
				return dt;
			}
			catch (IOException e) {
				return null;
			}
		}
A background command that runs after reference analysis, it applies functions signature
overrides to callsites that have a RTTI type parameter that return a specialized
type instead of a void*.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/GolangSymbolAnalyzer.java