Minor change to io-handle stringification

This commit is contained in:
sloum 2021-08-24 14:15:21 -07:00
parent b54c7b626b
commit 26f693c73a

View File

@ -15,12 +15,12 @@ type IOHandle struct {
}
func (i IOHandle) String() string {
state := "closed"
state := "CLOSED"
if i.Open {
state = "open"
state = "OPEN"
}
return fmt.Sprintf("%s %s io-handle", state, i.Kind)
return fmt.Sprintf("[%s] io-handle: %s", state, i.Kind)
}
type number float64