Code is a little more verbose than I'd like because Go doesn't have ternary operators, nor method overloading.
Thought I'd share, if you at all wish to have it, now that I'd got it working. And do suggest potential improvements if you see them, because I feel quite lost in terms of language features available.
Code is a little more verbose than I'd like because Go doesn't have ternary operators, nor method overloading.
Thought I'd share, if you at all wish to have it, now that I'd got it working. And do suggest potential improvements if you see them, because I feel quite lost in terms of language features available.