Skip to main content

Questions tagged [golang]

Installing and using the Go language and tools associated with it (like the go command). Programming in Go itself is off-topic.

Filter by
Sorted by
Tagged with
1 vote
2 answers
189 views

I have the following two simple programs. Parent: package main import ( "fmt" "syscall" ) func main() { attr := &syscall.ProcAttr{ Files: []uintptr{0, 1, ...
Yakog's user avatar
  • 517
1 vote
0 answers
92 views

I installed Golang into a custom folder under $HOME called .go/exec. After the installation, it put the binary under $HOME/.go/exec/go. So I updated $PATH to contain this directory: $HOME/.go/exec:$...
Berk Açıkgöz's user avatar
1 vote
1 answer
89 views

I am trying to cross compile a go project (syzkaller) to target a Pi Zero so it can emulate usb devices. The problem is that I have been unable to find information regarding how to specify the proper ...
Darrion Ramos's user avatar
0 votes
1 answer
267 views

I'm stepping through some Envoy tutorials (probably doesn't matter if you don't know what that is). I'm doing this on my Ubuntu VM (Windows 11 host) and I'm behind a corporate firewall. We run a ...
David M. Karr's user avatar
3 votes
0 answers
846 views

Note: this is about the producer detecting the consumer disconnecting, not the consumer detecting that the producer disconnected (aka EOF). The producer might not write any data for long periods, but ...
TheDiveO's user avatar
  • 1,437
-2 votes
2 answers
2k views

I installed cf using go get github.com/xalanq/cf-tool cd $GOPATH/src/github.com/xalanq/cf-tool go build -ldflags "-s -w" cf.go cf --version output: Codeforces Tool (cf) v1.0.0 I tried to ...
MdNihal05's user avatar
0 votes
0 answers
257 views

I created a binary file with Go Language. The owner of the file will be "userA" and the execution permission is set as "userA". The above configurations is enabled using the ...
sabby's user avatar
  • 1
0 votes
1 answer
640 views

curl -L https://packagecloud.io/golang-migrate/migrate/gpgkey | apt-key add - % Total % Received % Xferd Average Speed Time Time Time Current Dload ...
Ubaid Aadil's user avatar
0 votes
1 answer
675 views

Trying to install chainlink on my laptop I had to install go. Doing so i think i have done something wrong and now i having error message each time I open ubuntu terminal which contents the following: ...
Leo's user avatar
  • 101
0 votes
1 answer
139 views

I'm trying to install aptly from source (I'm using Simply Linux 9), I followed their instructions under the BINARY RELEASES section: $ git clone https://github.com/aptly-dev/aptly` But I'm getting ...
Ekaterina Ivanova iceja.net's user avatar
1 vote
1 answer
1k views

From May 30, 2022: Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password. This is a problem for ...
pevik's user avatar
  • 1,589
0 votes
0 answers
673 views

I need to upgrade the version of Go on my Alma Linux 8 box from the installed version 1.16 to the latest 1.18. There are several tutorials on how to install, but I haven’t found any for upgrade ...
vintorg's user avatar
  • 103
1 vote
0 answers
939 views

I want to install Bazel on linux 20.04 version. I have already installed go. I am trying to use the command go install github.com/bazelbuild/bazelisk@latest mentioned in here. Somehow I am unable to ...
A J's user avatar
  • 11
0 votes
0 answers
620 views

I wrote a program in Golang (it is compiled) and ran it using systemd as it needs to run long-term, auto reboot and run on startup, but it's pinning the cpu at 100%. Comparatively when running using ...
Joshua Pinti's user avatar
0 votes
0 answers
155 views

I want to get the file descriptor without opening the file which can be attained by using the O_PATH flag on linux. (ref) This flag doesn't seem to be there on darwin. Context I'm trying to use open ...
Alan's user avatar
  • 101
1 vote
0 answers
193 views

Let's say I'm writing a program in Go that runs for a period of time while using ANSI control codes to animate a progress indicator line. For example, outer: for { select { case &...
Sean's user avatar
  • 11
1 vote
0 answers
861 views

I am trying to do a build of gcc11 (on RHEL 7.6 which comes with 4.8.5 and no root access). When I run the following: ./configure --prefix=$HOME/gnu --enable-languages=c,c++ I get the response ...
LaptopProfile's user avatar
2 votes
1 answer
3k views

Background I'm writing an open-source GTK go app subsonic API client which: targets on first place mobile friendly Linux like postmarketOS (alpine linux), Mobian (debian) in future will be also ...
BigB's user avatar
  • 21
0 votes
0 answers
1k views

I need to collect all GPUs' info of a Linux server (such as VRAM, clock speed, usage, model name, etc., ...) in order to use Go (AKA Golang). I tried hwinfo and lspci, it just shows limited ...
myzh215219's user avatar
0 votes
1 answer
210 views

Does anyone know how to set the environmental variable in Golang by using : os.Getenv()
Encrypto's user avatar
1 vote
1 answer
588 views

go command not working if I switch to super user in zsh shell ..i even updated the zshrc file ...anyone who knows solution to problem please explain in detail..I'm new to linux
Durai Murugan's user avatar
-2 votes
1 answer
2k views

Once go-lang is installed, if I type go version and press enter in the same terminal which I used to install go-lang, it works and it shows me the go version. If I open a new terminal and enter the ...
Durai Murugan's user avatar
0 votes
1 answer
3k views

I have a problem with importing a module github.com/lib/pq in GoLang. I'm using Garuda Linux and I think Garuda is setting go environments differently than windows or Ubuntu. I installed using pacman, ...
Satyaban Sahoo's user avatar
2 votes
1 answer
1k views

I know that I can add a path to the $PATH on the bash terminal with the command PATH=$PATH:foo . I also know I can create an alias for the bash with the command alias a=b But only know I noticed that ...
Spyros Mourelatos's user avatar
3 votes
2 answers
1k views

I have this mini bash script #!/usr/bin/env bash go run <(cat <<EOF package main import "log" func main(){ log.Println("here 123") } EOF ) go run takes a file path argument, often times ...
Alexander Mills's user avatar
4 votes
1 answer
12k views

I have a problem with my go installation. I'm using Manjaro and I think it is related to this as Manjaro seems to handle the go env differently then suggestest by ubuntu and windows. I have go ...
The Fool's user avatar
  • 195