Add golang and converters for unit/coverage test results

Change-Id: Ib1f62bb79f89a73f587ae21564dd3db72f946dd9
diff --git a/packer/provision/basebuild.sh b/packer/provision/basebuild.sh
index 9ca0453..4900948 100644
--- a/packer/provision/basebuild.sh
+++ b/packer/provision/basebuild.sh
@@ -45,6 +45,9 @@
          $(lsb_release -cs) \
          stable"
 
+    # set up golang repo
+    add-apt-repository ppa:gophers/archive
+
     apt-get update
 
     # install basic sofware requirements
@@ -55,6 +58,7 @@
         bzip2 \
         curl \
         git \
+        golang-1.10-go \
         less \
         libpcap-dev \
         libxml2-utils \
@@ -112,6 +116,15 @@
         typings
         # end of npm install list
 
+    # install golang packages in /usr/local/go
+    # Set PATH=$PATH:/usr/local/go/bin` to use these
+    export GOPATH=/usr/local/go
+    mkdir -p $GOPATH
+    export PATH=$PATH:/usr/lib/go-1.10/bin:$GOPATH/bin
+    # converters for unit/coverage test
+    go get -v github.com/t-yuki/gocover-cobertura
+    go get -v github.com/jstemmer/go-junit-report
+
     # ubuntu 16.04 installs the node binary as /usr/bin/nodejs, which breaks
     # tools that expect it to be named just `node`. Symlink it to fix
     ln -s /usr/bin/nodejs /usr/local/bin/node