Loading...

Follow GolangCode on Feedspot

Continue with Google
Continue with Facebook
or

Valid
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 ..read more
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 
This post demonstrates how to get the IP address of incoming HTTP requests in Go. As a function, it attempts to use the X-FORWARDED-FOR ..read more
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 
Constants in Go, when combined with iota, can be a nice way to use options and settings as a list. We have an example below using genders ..read more
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 
Go has a simple command line for running its tests, with go test. However, often when writing tests you don’t care about the rest of the ..read more
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 
We have already covered pdf generation to some degree, by using wkhtmltopdf on AWS’ Lambda service. This post is about generating pdfs ..read more
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 
There are of course many different ways to build authentication into APIs these days - JSON web tokens being just one of them. JSON Web ..read more
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 
Go doesn’t have a find or in_array function as part of it’s standard library. They are easy to create however. In this example we ..read more
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 
This is a matching post to “Writing to a File” and explains how to simply get the contents of a file as text and print it to screen. ..read more
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 
Some applications and programs can be very time sensitive - and they often need to return something in a timely fashion. However, it’s ..read more
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 
This is part 1 of how to find the dominant colours within an image. You might spot this functionality around the internet, as it’s used ..read more

Read for later

Articles marked as Favorite are saved for later viewing.
close
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Separate tags by commas
To access this feature, please upgrade your account.
Start your free month
Free Preview