Go Index Page 1

Hugo How to ignore watch files on the server

You can use watchIgnoreFiles = [ "\\.foo$", "\\.boo$" ] to ignore watch files when using hugo. Add the ignore list to the config.toml.

Go Index Page 1

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.

Go Index Page 1

Golang: convert rune to int

Convert a rune to an int using int(rune - '0'). Read our article for more information

Go Index Page 1

go build: runtime.main_main·f: function main is undeclared in the main package

When you get the error "runtime.main_main·f: function main is undeclared in the main package" this means that there is a file in your project which is missing the "func main". Check here for more details.

Go Index Page 1

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.

Go Index Page 1

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.

Go Index Page 1

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.

Go Index Page 1

Error while installing bettercap: pcap.h: No such file or directory

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 ->

Go Index Page 1

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.

Go Index Page 1

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

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