Freeze can create images from text files shell command output. E.g.
freeze --execute "ls -ls" -o freeze-ls-ls.pngwill create a file freeze-ls-ls.png that shows the result of the ls -ls command, which looks like:

freeze --execute "ls -ls" -o freeze-ls-ls.pngYou can get an image of a text file, like a go.mod file, as well. Issue the command
freeze go.mod -o freeze-go-mod.pngand get the following image:

freeze go.mod -o freeze-go-mod.pngBecause Freeze is written in Go, you can use it on any operating system.