acep-uaf / data-diode

Tool for interacting with data diode(s) via command-line interface (CLI).
MIT License
2 stars 1 forks source link

Fix: Add a 'min' function to work with go1.18.1 #54

Closed olawlor closed 1 month ago

olawlor commented 1 month ago

On Ubuntu 22.04, the default go version is 1.18.1, which doesn't have "min" in the standard library.

The usual fix is to add a local definition, which I've done here. Everything else compiles, and seems to work fine as far as I can test.