Category: Golang Code

Foreach Loops: The Go Way

The foreach keyword itself does not exist within Go, instead the for loop can be adapted to work in the same maner. The difference however, is by using the range keyword and a for loop together. Like foreach loops in many other...

Read More

Build a Basic Web Scraper in Go

This is a single page web scraper, it uses the goquery library to parse the html and allow it to be queried easily (like jQuery). There is a Find method we can use to query for classes and ids in same way as a css selector. In...

Read More
Loading