[golint] avoid explicit type declaration for pdbg
Add bufio writers for out and err