Articles tagged "go"

Page 3 of 4

11 min readIntermediate

compile: version does not match go tool version — Fix in 60 Seconds

Fix "compile: version does not match go tool version" in Go. Caused by GOROOT mismatch, stale PATH, or multiple Go installs. Copy-paste fix for Linux, macOS, and Windows.

1 min readBeginner

Hugo How to ignore watch files on the server

You can use watchIgnoreFiles = [

1 min readBeginner

golang open file and iterate lines

In this tutorial, we are going to explain how to parse a file with go and iterate lines of a file.

3 min readBeginner

Go Type Conversion Guide: rune to int, string to int, int to string (2026)

Complete Go type conversion guide 2026: rune to int with int(), string to int with strconv.Atoi, int to string with strconv.Itoa, byte to string, int64 conversions. All with working code examples.

3 min readBeginner

Fix Go Error: runtime.main_main·f: function main is undeclared [Solution]

Fix the Go error "runtime.main_main·f: function main is undeclared in the main package". Learn the causes and step-by-step solutions with code examples.

1 min readBeginner

How to update the Go version

Steps to update go lang to the latest version. Remove your current go and then Go to the [downloads](https://golang.org/dl/) page and download the binary release. finally install it following the steps in this guide.

3 min readIntermediate

Understanding the go scheduler

The scheduler tries to use a small number of kernel threads to support high concurrency. It will leverage parallelism to scale to many cores. In this tutorial, we explain with some details how the go scheduler works to distribute goroutines over kernel threads.

4 min read

Introduction to asynchronous networking programming with go

With go you don’t have threads, you have goroutines which are very cheap in terms of stack and scheduling. Go has a scheduler which works like an event loop, but it allows the developer to forget about events, queues, saving state, etc. Check our tutorial to learn to go networking programming.

1 min readBeginner

Bettercap Install Error: pcap.h Not Found

When you do: go get github.com/bettercap/bettercap and get the error: fatal error: pcap.h: No such file or directory try to execute ->

1 min readBeginner

Install go in raspberrypi steps

Follow this steps to install go on the raspberry pi. We don't use apt to install go and instead we download the latest version from https://golang.org.