Open in app

Sign In

Write

Sign In

Dan Gillis
Dan Gillis

95 Followers

Home

About

Jul 13, 2021

Logging in go-api-basic

Thoughts on Logging I’ve gone through a few logging phases in my career. I logged everything. It was great, until the logs became meaningless because there were too many. I logged only errors, but in some cases that was not enough. Now I’m somewhere in the middle. I do believe in logging all…

Go

6 min read

Logging in go-api-basic
Logging in go-api-basic
Go

6 min read


Jun 21, 2021

REST API Error Handling in Go

Handling errors is really important in Go. Errors are first class citizens and there are many different approaches for handling them. Initially I started off basing my error handling almost entirely on a blog post from Rob Pike and created a carve-out from his code to meet my needs. It…

Go

7 min read

REST API Error Handling in Go
REST API Error Handling in Go
Go

7 min read


Jun 21, 2021

Emerging from my Gopher Hole

Inspiration I was inspired recently after listening to Go Time FM episode #167 and Johnny Boursiquot’s callout: “If you are out there, and I’m speaking to you listener, or watcher, if you are out there and thinking/meaning to muster up the energy or overcome the imposter syndrome to write a blog…

Go

5 min read

Emerging from my Gopher Hole
Emerging from my Gopher Hole
Go

5 min read


Oct 13, 2018

HTTP Logging and Go API Template Updates

I built my first Go library! httplog provides middleware which logs http requests and responses along with a few other features I find useful. I thought it might be helpful for some. At the very least, I tried to document the library reasonably well, spending a lot of time developing…

Golang

3 min read

HTTP Logging and Go API Template Updates
HTTP Logging and Go API Template Updates
Golang

3 min read


Jul 18, 2018

Basic Redis Examples with Go

Redis is pretty great. It is the #1 most loved database for the second year in a row, according to a recent Stack Overflow survey. I decided it was high time I taught myself how to use it with Go. There are a number of libraries in the Go ecosystem…

Golang

4 min read

Golang

4 min read


Apr 6, 2018

Containerizing a Go API with Docker For Mac

I’m working through creating a RESTful API template. As part of it, I want to be able to “Containerize” my app using docker and deploy it to “the cloud”. Baby steps for me though — I want to get everything working locally first. This post is about “containerizing” my API…

Docker

9 min read

Docker

9 min read


Mar 18, 2018

HTTP JSON Error Responses in Go

I like simple structured messages using JSON in error responses, similar to Stripe, Uber and many others… { "error": { "type": "validation_failed", "message": "Username is a required field" } } In my last story, I wrote about HTTP Logging and in that I mentioned that I have used “chained” middleware…

Golang

3 min read

Golang

3 min read

Dan Gillis

Dan Gillis

95 Followers

Go enthusiast; Loyalty/CRM Technology Leader; Drummer; Vinyl geek; Husband/Dad

Following
  • Ralph Caraveo

    Ralph Caraveo

  • MIT Media Lab

    MIT Media Lab

  • David Fekke

    David Fekke

  • Ravish Garg

    Ravish Garg

  • Matthew Cannalte

    Matthew Cannalte

See all (87)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech