input Getenvs to FlagXYZ
This commit is contained in:
@@ -50,7 +50,7 @@ func (kb Keyboard) Read() []byte {
|
||||
if err != nil && err != io.EOF {
|
||||
panic(err)
|
||||
}
|
||||
if os.Getenv("DEBUG") == "true" {
|
||||
if FlagDebug {
|
||||
log.Printf("raw.Keyboard.Read() %s", b[:n])
|
||||
}
|
||||
return b[:n]
|
||||
|
||||
Reference in New Issue
Block a user