I'm writing a command line tool with Go and one of the command will query the user for its username and password (and save it to a config file inside the home directory).
For now I couldn't realize how to replace the typed password to '*' or even not to type anything as a lot of command line tools are doing.
How does can this be done when using golang?