Linux MTD Paritition Calculations (using Go instead of spreadsheets)

Needed to redo the flash partitions on a project I maintain, so dug out an old script I write for doing these calcs and sharing here in case anyone finds this useful.

Go works so well for something like this. I reach for a spreadsheet too often instead of writing a program. With tools like Juypter-notebook, Julia, and even general purpose languages like Go, these tools are often easier in the end than spreadsheets – we just tend to be too lazy to write programs …