Questions tagged [golang]

Aka: go, "a compiled, statically typed language in the tradition of Algol and C" (wikipedia) created by Google.

Filter by
Sorted by
Tagged with
0
votes
2answers
37 views

How can I install a Compiler for Golang?

I'm having a Raspberry pi4 4GB model, with the raspbian (TWISTER OS) installed. I have installed GOlang from google using the pip install golang command. But I am having problem with installing ...
1
vote
1answer
62 views

Rpi 4 Pin 29 default to High pull?

I am fairly new to Raspberry PI GPIO pins. I have some simple code which sets Pin 29 (BCM 5 in this picture) as an IN (READ) Pin and then reads from it after boot and on raspberry pi 3 it has always ...
1
vote
1answer
52 views

OpenGL 2 slowness

The Raspberry Pi 3b+ runs my OpenGL 2.1 program very slowly, with a frame rate of around 2 fps. How is this possible, when Python/Pyglet can render (using OpenGL, I suppose) much faster than this? And ...
1
vote
1answer
75 views

What is the frequency and cycle length of the pigpio library?

I've got a raspi 3b with an esc and a brushless motor attached. I can run the motor using pigpio the following commands: # First start the pigpio daemon sudo pigpiod # calibrate the esc pigs s 12 ...
1
vote
1answer
312 views

spi/mcp3008 trouble with getting a reading from chip, all channels read 0 (zero)

Pi model: Pi 3 A+ Os: Raspbian GNU/Linux 9 (stretch) <- it's stretch lite SPI: On Loop back test: spi mode: 0x0 bits per word: 8 max speed: 500000 Hz (500 KHz) TX | FF FF FF FF FF FF 40 00 00 ...
1
vote
0answers
106 views

Running cockroachdb on a Raspberry pi 2 model b (32-bit) as a docker container

I'm trying to run cockcroachdb on a Raspberry Pi within a docker container, but they only provide 64-bit versions of cockroach as they explained it here . But I do see references of running cockroach ...
3
votes
2answers
5k views

Docker run “someImage” returns: standard_init_linux.go190: exec user process caused “no such file or directory”

As the title said, I cannot reproduce this kind of error in any Dockerfiles of mine, after trying to run the Docker Container with docker run registryName:tag I'm trying to cross compile from amd64 ...
0
votes
1answer
50 views

Permissions for tar extraction

I just got a raspberry pi 3 and I am trying to install golang 1.8.5. However, when I tried to extract the tar.gz file to the usr/local/ directory, I got an error message saying that I did not have ...
4
votes
1answer
156 views

Are binaries generated by Golang portable between Pi versions?

I installed golang via (on RPi3, Raspbian Stretch) sudo apt install golang Currently go version reports go version go1.7.4 linux/arm I successfully compiled and ran some go program that toggles ...
4
votes
1answer
963 views

How can I install keybase (and dependencies) without running out of memory?

I have a Raspberry Pi 3 running the most recent Raspbian distro. I've installed the most recent go, from the prebuilt package and have it on my path: $ go version go version go1.9 linux/arm However,...
0
votes
1answer
149 views

Debugging with the Raspberry Pi

I am currently working on https://yfirbord.com I've just started playing around with the GrovePi and I wonder: what's the fastest way to write code on my mac, compile it for the RaspberryPi, ship it ...
4
votes
1answer
4k views

How to run a golang program in the background?

I made a program in Go. That program compiles and runs very well on the raspi, when I start it via ssh. To start the program correct, I need to set some flags. myservice -port :1234 The program is a ...
8
votes
4answers
16k views

Install golang the easy way

I'd like to use the Pis with Raspbian to run Go code. For this, I like to write an easy and fast setup guide from the point you erase the SD card. During the development, I installed Go on the Pis ...