Skip to content

Instantly share code, notes, and snippets.

@Esfera5
Esfera5 / go2vs.cs
Last active March 15, 2017 02:16
Convert Go errors to Visual Studio
// @cd $(ProjectDir)
// @go build main 2>&1 | go2vs.exe "src"
using System;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
public class Program
{
EclipseProjectInfo = provider(
fields=["project_name", "package_name", "folders", "projects", "jars"]
)
def _generate_eclipse_project_file(ctx, info):
project_lines = [
'<?xml version="1.0" encoding="UTF-8"?>',
'<!-- DO NOT EDIT - AUTOMATICALLY GENERATED -->',
'<projectDescription>',
' <name>%s</name>' % info.project_name,