added ami's code

you can use the go logger and print freely with `log.Debug()` and just set the log level to info or higher to dismiss these prints in production.