Home » Tag Archives: Go

Tag Archives: Go

From Macro to Microservices: Jumpstarting Your Transition

In my last article, we went through the reasons why changing from macro to microservices might be a good idea. In this one, we get to the real stuff: How a facade proxy should function to start replacing your old services and/or introducing new ones the easy way, and then how to deploy it to AWS inside a Docker container. ...

Read More »

Go: Multi-threaded writing to a CSV file

As part of a Go script I’ve been working on I wanted to write to a CSV file from multiple Go routines, but realised that the built in CSV Writer isn’t thread safe. My first attempt at writing to the CSV file looked like this: package main     import ( "encoding/csv" "os" "log" "strconv" )   func main() { ...

Read More »

Go vs Python: Parsing a JSON response from a HTTP API

As part of a recommendations with Neo4j talk that I’ve presented a few times over the last year I have a set of scripts that download some data from the meetup.com API. They’re all written in Python but I thought it’d be a fun exercise to see what they’d look like in Go. My eventual goal is to try and ...

Read More »

Go: First attempt at channels

In a previous blog post I mentioned that I wanted to extract blips from The ThoughtWorks Radar into a CSV file and I thought this would be a good mini project for me to practice using Go. In particular I wanted to try using channels and this seemed like a good chance to do that. I watched a talk by ...

Read More »

Try and Catch in Golang

Golang as opposed to Java does not have exceptions, try/catch/finally blocks. It has strict error handling, functions called panic and recover and a statement named defer. It is a totally different approach. Is it better or is the Java approach the superior? (Sorry that I keep comparing it to Java. I am coming from Java world.) When we handle exceptional ...

Read More »

Go Language For Java Developer Part-6 : Operators

Operators in Java and Go Lang.  Every programming languages support operators. Operators are work like a function with different syntax compared to normal function. For example arithmetic operator +. List of Operators in Java & Go Lang The Following table has a list of operators available in the language.         Sr Operator Description Go Java 1 + addition Yes ...

Read More »

Create a Slack Docker proxy in Go – Part 2

In the previous article we had a look at how you could easily create a slack-docker-proxy using go and a couple of small libraries. In this second article we’ll show you how easy it is add additional commands, and we’ll look at how to dockerize this component to you can easily run it inside a docker daemon. Note that the ...

Read More »

First Steps Into the World of Go

Since developers should learn a new programming language every year, I felt it was about time for me to dive into something new and I decided on Go. The good news is that Go has awesome documentation to get you started. More good news is that Go has a mature ecosystem of tools, including support for getting dependencies, formatting, and testing. There ...

Read More »

Create a Slack Docker proxy in Go – Part 1

Last year I had the opportunity to work with lots of cool tools and technologies. A couple of those were go, slack and docker. We pretty much use slack for all our communication, and are slowly adding more and more integrations to slack to get information from various build and runtime tools. In our environment we’ve got a number of ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns