I've got a little go tool found here: https://github.com/deusdat/gocrypttool
It takes two command line arguments: the clear text password to encrypt and the cost of the bcrypt.
If I run the command with two arguments, it works fine. When I run the command gocrypttool "$(< example)"
where the file example exists, and holds the same two command line arguments, I get 2018/06/19 12:03:23 Please provide the password and the cost.
This error indicates that the binary didn't get arguments.
How, without adding a command line interface with prompts, can I read a file for arguments to a go binary?