Articles tagged "go"

Page 3 of 4

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.

2 min readBeginner

Go: How to write/read data to a CSV file?

Learn how to write/read data to a csv file using the go lenguage

2 min readBeginner

Go: How to search and replace text using golang?

In this tutorial we are going to explain how to use string.Replace function and Replacer class. We are going to show you some example code.

3 min readBeginner

Go project skeleton

In this tutorial we will generate a go project skeleton or directory structure. As an example the command will send a message to slack.