Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [golang]

Questions relating to Google's Go Programming Language project.

0
votes
1answer
14 views

How to create snap YAML file of program written in golang sciter library?

could you please help me? How to create YAML file for golang application written in language go named golang and sciter library https://sciter.com/ ? I mean how what to write to yaml file to have ...
0
votes
0answers
44 views

How does the shared libary file “snap” help Ubuntu find the path of go executable file?

I install go by snap, and run go run test.go in terminal (from home directory), and it run successfully. So usually this means go executable file (or symbolic link point to it) is in a path that is ...
0
votes
1answer
35 views

go still run even its path not in environment variable path?

I install go by snap, the path to executable file of go is not in environment variable path, but when I use go run test.go in terminal (from my home directory), go still work. As my understand, the ...
1
vote
0answers
24 views

How to install and use pup from golang?

I installed go through snap; now how do I invoke pup? thufir@dur:~/pup$ thufir@dur:~/pup$ go get github.com/ericchiang/pup thufir@dur:~/pup$ thufir@dur:~/pup$ curl "skynet.be/nieuws-sport/weer/mijn-...
0
votes
0answers
19 views

Manually installed go, auto-update in conflict

I have this version of go installed: $ go version go version go1.10.3 linux/amd64 My sources list contains: $ cat /etc/apt/sources.list.d/gophers-ubuntu-archive-bionic.list deb http://ppa.launchpad....
2
votes
2answers
657 views

command 'go' not found

This is not a programming question. I have a machine running Ubuntu, and I installed Golang in it. It was working fine... I even ran a few programs in it, but the "go1.11.2.linux-amd64.tar.gz" file ...
0
votes
0answers
34 views

kubectl proxy too many open files retrying in 1

I am trying to use kubectl proxy but when I run it I got this issue I1109 18:16:42.178548 7569 log.go:172] http: Accept error: accept tcp 127.0.0.1:8001: accept4: too many open files; retrying in ...
0
votes
0answers
33 views

Snapcraft - Build snap using a specific golang version

I have been trying to build my application via snap. However, snap uses go version 1.6 by default. I need at least go 1.10 though. How'd I go on about that? I couldn't find anything useful in the ...
0
votes
0answers
22 views

How to run the golang script from github in ubuntu installed on vmware

please any one tell me step by step ,how to run script in github which were written in golang language. like link given:https://github.com/dustinkirkland/golang-petname thanks.
0
votes
1answer
1k views

Unable to install Go dep

I am trying to run the command dep ensure on my Ubuntu 16.04, but the system is unable to find the command. When I run sudo apt install dep or any other installation commands, I always get this error ...
2
votes
1answer
156 views

software not installed after successfull apt-get install in ubuntu subsystem on windows 10

I have installed go via sudo apt install golang-1.10-go but I can't execute go afterwards since the shell tells me that go is not installed. I tried to install go again. which tells me it is installed ...
1
vote
0answers
373 views

i want to install specific version of go programming language(1.7.5 ) in ubuntu 16.04

wget https://storage.googleapis.com/golang/go1.7.5.linux-amd64.tar.gz extract the package sudo tar -zxvf go1.7.5.linux-amd64.tar.gz -C /usr/local/ Added by Go Path echo 'export GOROOT=/usr/local/...
1
vote
1answer
19 views

U Core hosted on OSX [closed]

id like to start experimenting with snaps on ubuntu core. Ideally start with a Docker image or Virtual Box container. Eventually I want to remotely deploy goLang apps, on rasspi's... but I am ...
0
votes
1answer
416 views

how to install the golang package on a complete different folder and make it run?

I want to install the go lang package on a separate folder, instead of using apt-get install to install it. I'm not keen to use apt-get for many reasons that would be too long to explain here. I did ...
0
votes
1answer
277 views

Can't use go in Visual Studio Code terminal

I have the latest versions of Visual Studio Code and Go compiler. When I am trying to build file in Visual Studio Code terminal using go build [FILENAME] I get this output: The program 'go' can be ...
5
votes
5answers
9k views

Installation instructions for golang 1.9 into Ubuntu 16.04

I'm looking for the correct way to install golang 1.9 into my laptop that is running Ubuntu 16.04. Many thanks
0
votes
0answers
341 views

dpkg: error processing archive /var/cache/apt/archives/golang-1.6-go_1.6.2-0ubuntu5~16.04.2_amd64.deb (--unpack):

When I am running sudo apt-get -f install, it shows dpkg: error processing. Please find the complete logs below and advise how to solve this. I am running VB 5.0.10 with Ubuntu 16.04 and already ...
1
vote
0answers
201 views

Ubuntu Core on Raspberry Pi 3 SPI driver isn't available

I have Golang program for Raspberry Pi 3 that reads data using SPI. I use this library to do that: https://github.com/kidoman/embd. And it works ok on Raspbian OS. I tried to port it to Ubuntu Core. ...
1
vote
1answer
2k views

Where to store global config file for a snap application

I'm currently working on a server side app written in Golang. I want to package the app in a snap package. Where can I store a global configuration file for the app that retains itself even after an ...
1
vote
1answer
570 views

How to use umake to install the Go language (version 1.8) in Ubuntu 16.10?

I am having trouble with installing the latest version of golang on Ubuntu 16.10. After running the sudo umake go command I get the message saying to choose the installation path with the default path ...
1
vote
1answer
667 views

Where is the golang-1.7 binary?

I've installed golang-1.7 on 16.10, but when I run, e.g. go version I get /usr/bin/go: No such file or directory. So I'd like to add the path to $PATH so I can use go 1.7, but I don't know where to ...
0
votes
1answer
603 views

I made /usr/local/ world writable, is it secure?

I had problem with npm while using Go(lang) framework Buffalo, the framework couldn't run npm through "sudo" so I needed to make npm world writable using chmod. I ran the following command sudo chmod ...
6
votes
1answer
4k views

How to create a launcher for for JetBrains Gogland

Gogland was released as preview yesterday. And I, being new to Linux have problem making a launcher for it using .desktop file. I have never created .desktop file before, and I am running Ubuntu 14....
1
vote
0answers
332 views

How to install a recent, managed version of golang on Ubuntu 14.04?

The Go programming language (golang) has multiple versions and multiple implementations. Some software requires a more recent version than the 1.2.1 in Ubuntu 14.04 via the golang-go package: $ go ...
1
vote
0answers
80 views

Go app won't compile in Ubuntu SDK

I'm trying to create a new Ubuntu Touch App with Go and QML using the template in the SDK. The application won't build and gives the following error. 17:41:47: Running command go get -d -u gopkg.in/...
1
vote
0answers
452 views

How to run a golang restful api as service in ubuntu server

I need to run golang restful server that build using gin framework and mongodb as service in my ubuntu server.how can do this? (every time i run the go script i need to this also gvm use go1.4)
1
vote
1answer
31 views

Error building .click package with click build .: '…' is not a directory

Error I get when building a .click package, which is an Ubuntu Phone scope: ERROR: 'my-scope' is not a directory Any idea what this could be referring to? Thanks!
0
votes
2answers
64 views

Can't install needed python3-scope-harness for Ubuntu Scopes dev in Go

At https://developer.ubuntu.com/en/scopes/tutorials/developing-scopes-go/ it tells me to run sudo apt-get install unity-scope-tool golang git bzr python3-scope-harness mercurial But I receive the ...
23
votes
8answers
32k views

Updating golang on Ubuntu

I have Ubuntu 14.4.03. The default golang version which came with it was 1.2.1. I would like to update golang to 1.4 or higher. After searching I found the way to do this would be to first delete ...
4
votes
1answer
514 views

How do I develop a Ubuntu application using the Go language?

I want to develop some application for the Ubuntu platform. But I don't know C++. I can learn QML very easily. The problem is that the logic or process behind the scene in an application seems to use ...
1
vote
1answer
483 views

error while installing go

I'm following the steps from this link to install go. sudo apt-get install python-software-properties # 12.04 sudo add-apt-repository ppa:duh/golang sudo apt-get update sudo apt-get install golang ...
3
votes
1answer
111 views

Can not install juju from “go install”

I had already config golang env on ubuntu os and go get juju from github to my local lab . I can successfully run following command, 1. godeps -u dependencies.tsv 2. make install-dependencies 3. ...
11
votes
2answers
6k views

How to properly install Go Language in Ubuntu?

I'm trying follow these instructions to install Drive but I can't get Go to work properly. I keep getting the error: go tool: no such tool "6g" When I try to use go get [url]. I also get this error ...
0
votes
1answer
2k views

Cannot run go install on Ubuntu

When I run go install command for my custom packages on ubuntu 14.04 I got this error : go install: no install location for .go files listed on command line (GOBIN not set) How can i set $GOBIN ...
0
votes
1answer
2k views

Using 'drive' google drive cli

I installed the (quasi?) official gdrive linux cli based on instructions from howtogeek. This failed with the following message: $ go get github.com/odeke-em/drive/cmd/drive go tool: no such ...
4
votes
2answers
2k views

Installing the Go Language

How to correctly install and configure the Go Language in Ubuntu. There are many packages to choose from but which packages do I need to install and what do I need to configure afterwards to be able ...
4
votes
2answers
1k views

I've installed golang with accordance with the wiki yet “go get” is missing

I've installed everything go-related from synaptic and later added ppa as described in the wiki: https://wiki.ubuntu.com/Go yet I cannot do "go get" for example go get code.google.com/p/gorilla/mux ...
31
votes
5answers
13k views

Any PPAs for Google's Go Language?

Do you know of any URLs for PPAs of Google's Go Language?