Simple Golang HTTP Request Context Example

Intro For the longest time I have wanted to see an easy to understand example (read newbie) of how to add data to the “new” golang 1.7 request context object. Since I wasted more than 2 days looking for something like that and never really found anything I decided to figure it out from the docs and write something up for others like me that wanted something simple. The example below is trivial and does not put anything useful in the context it’s just there to get your own juices flowing. Read On →

Receiving and Processing Github API Events

Intro Github the is the most widely used code repository around, one of the best features is that almost everything you can do to a code repository is exposed thru apis and events. In this article, we will investigate how to receive those events, parse them and act on them using the api. In another article (Part 2) we will investigate the Jenkins API and show how you can trigger a jenkins job after receiving an event from github and wait for a response to provide Github an actual status. Read On →

Accessing an Oracle DB in Go

Intro This week I needed to access an Orable DB from GO and so I embarked on a journey that lasted almost 2 days. Everywhere I looked the documentation on how to get this going was not very intuitive so once I actually got it going, I decided to write my own how-to in order not to forget it. How-To Download Client files: unzip in one directory say: /Oracle (this will create the /Oracle/instantclient_12_1 directory) Create the oci8. Read On →

Writing a Text Adventure Game in Go - Part 4

<<< Part 3: Items and Tresure Intro (Putting it all together) Welcome back to part 4 of Writing a Text Adventure in Go. In the last 3 parts we created individual systems to handle maps+events, combat, and items. In this part we will put it all together into one application that runs a Text Adventure from A to Z. In order to get this done we will create a project which will have several files to make the code more easily understood and in addition to this refactoring we will then make a few changes for the basic user interface. Read On →

Writing a Text Adventure Game in Go - Part 3

<<< Part 2: Combat Part 4: Putting it all together >>> Intro (Items and Treasure) The last time I promised to merge all the code and create items that could be used in the text adventure, unfortunately I have to apologize because of my other current commitments I could only get some of that done. So in this installment I will show you how to create items that can be in a specific location and make some items dependant on the adventurer having other items on him/her to use them. Read On →