Thanks @elias for your support. Finally I resolved that issue, Actually I tried to install mattermost using mattermost developer machine setup ( https://docs.mattermost.com/developer/developer-setup.html) . There they are telling to set,
export GOROOT=/usr/local/go/
Actually I installed go using brew , it is installed in another path . So I changed the GOROOT as
export GOROOT=/usr/local/Cellar/go/1.7.3/libexec/
Now it is working.