Pages tagged "go"
Golang Documenting Package Examples
Go has been gaining a lot of popularity recently. With a lot of the success stories centered on the performance gains switching from other languages. For me a lot of the smaller features, that shows an attention to detail, which makes it enjoyable to code in.
Golang Timed Function Wrapper
Wrote this quick and probably dirty wrapper for timing functions in Go.
TimedReturn
returns an interface{}
in case a return value is needed
from whatever you are wrapping.
Golang Package Version Flag
So you’ve built your first service using Go and have it deployed out into your production environment. With cross compiling built into Go it’s easy and almost trivial to build a new binary of your code and deploy updates.
Golang Current File Path
I recently needed to get the current file absolute path from a go file. You first need to get the runtime package which is a part of Go