Questions tagged [golang]

Questions relating to Google's Go Programming Language project.

Go, also known as golang, is a programming language initially developed at Google in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson.

It is a statically-typed language with syntax loosely derived from that of C, adding garbage collected memory management, type safety, some dynamic-typing capabilities, additional built-in types such as variable-length arrays and key-value maps, and a large standard library. It is heavily influenced by C, Limbo, Modula, Newsqueak, Oberon, Pascal & Python.

71 questions
73
votes
12 answers

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 current go installation and then re-install the new…
57
votes
8 answers

Any PPAs for Google's Go Language?

Do you know of any URLs for PPAs of Google's Go Language?
Marty
  • 2,185
34
votes
9 answers

command 'go' not found

This is not a programming question. I have a machine running Ubuntu, and I installed Golang on it. It was working fine... I even ran a few programs, but the "go1.11.2.linux-amd64.tar.gz" file was in my home directory so I thought it would be okay to…
richie
  • 445
12
votes
3 answers

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.04 So, this is what I've got right now.…
ivan marchenko
  • 293
  • 1
  • 3
  • 7
12
votes
2 answers

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 when trying to run a hello world script (to check…
Bprodz
  • 265
  • 3
  • 10
6
votes
1 answer

How to install specific version of Go in Ubuntu using snap

I am trying to install Go version 1.16 using a snap package, but not able to. Instead I am getting newer versions. How can I install version 1.16 regardless of what version is currently available?
Vimal
  • 71
6
votes
1 answer

How to install the latest version of golang in Ubuntu?

i was working on a golang program and it was working correctly til yesterday, this morning i made some changes and get a build and every thing was fine then i tried to run the program through command line but this message showed…
5
votes
5 answers

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
burattim
  • 71
  • 1
  • 1
  • 3
5
votes
1 answer

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 C++. So I thought maybe I should learn Go…
5
votes
2 answers

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 to use any of the Go packages without having a…
Luis Alvarado
  • 216,643
5
votes
1 answer

Duplicate system PATH variable (snap/bin:/snap/bin)

When I run echo $PATH the duplicate output snap/bin:/snap/bin appears at the end and seems unusual. /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin Is this duplication undesired? If so,…
XJMZX
  • 79
4
votes
1 answer

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 upgrade? Some sample code would be nice, thanks!
4
votes
2 answers

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 says that go command is not found. How should I…
3
votes
1 answer

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 version go version go1.2.1 linux/amd64 Or the…
nealmcb
  • 3,715
3
votes
1 answer

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. go test -v ./state -gocheck.v…
ChunFeng
  • 105
1
2 3 4 5