I know the creators of Go decided to randomize the keys of maps so that people didn't assume their order. I guess that could have changed by now but I haven't seen any documentation to that effect.
There's a call to a Linux journal function as follows:
journal.Send(message string, priority Priority, vars map[string]string) error
(from https://github.com/coreos/go-systemd)
It would be nice to send the vars in a known and controlled order instead of randomized but I don't see how that is possible if you can't really sort a map - all examples I have seen sort the keys into an array and then iterate using the array as a sorted index for the map keys.
Does anyone have any ideas other than rewriting the journal.Send()
routine?