Thing seem to be working!

This commit is contained in:
Matthew R. Wilson committed 2020-11-02 17:35:43 -08:00
1 parent adb42dea54
commit ebff6c7a2f
4 files changed
+126 -43

No files matched your search

+4
View File
@@ -9,13 +9,17 @@ import (
"io"
)
// Enable go3270 library debugging by setting Debug to an io.Writer.
// Disable debugging by setting it to nil (the default value).
var Debug io.Writer
// debugf will print to the Debug io.Writer if it isn't nil.
func debugf(format string, a ...interface{}) {
if Debug == nil {
return
}
fmt.Fprintf(Debug, "dbg: ")
fmt.Fprintf(Debug, format, a...)
}