Golang Gotcha: Modifying an array of structs

Scenario Using Golang, we initialize an array of structs, within which we'd like to change a field by iterating over the initialized array. This would be necessary (for example) to initialize certain struct fields. An initial pass at the code may look something like this: // play with this code here: https://go.dev/play/p/VH0duYxZVZn package main import … Continue reading Golang Gotcha: Modifying an array of structs

Nugget post: WKHTMLTOPDF not loading JavaScript

WKHTMLTOPDF is an extremely popular tool to convert existing html pages (or strings) to a PDF. This comes in handy for CyberSift's Tutela product, where we are required to generate PDF reports programmatically. A significant aspect of these reports are graphs and charts to more easily visualize data. When using newer charting libraries, we ended … Continue reading Nugget post: WKHTMLTOPDF not loading JavaScript