Golang: one function, one argument – multiple types

For better or for worse, Golang is an extremely simple language. It lacks some of the constructs other languages has. One of these features is generics (which at the time of writing, is about to be included in the language, though it hasn't hit production yet). As a refresher, generics allow you to define variables … Continue reading Golang: one function, one argument – multiple types

Nugget Post: Finding Average length of field in ElasticSearch

It's sometimes useful to find the average length or size of a given field in Elasticsearch. It would help indicate the size taken up by a document, or help determine maximum lengths to be allowed and so on. Unfortunately this is not a visualization built into Kibana, however it is possible to define an aggregation … Continue reading Nugget Post: Finding Average length of field in ElasticSearch