gosh is my attempt to port bash to go.