group var definitions in block

This commit is contained in:
Bradley Cicenas 2017-02-11 03:58:26 +00:00
parent a6aa9859c0
commit 3513f7485d

View File

@ -14,11 +14,13 @@ const (
path = "/tmp/ctop.sock" path = "/tmp/ctop.sock"
) )
var format = logging.MustStringFormatter( var (
exited bool
wg sync.WaitGroup
format = logging.MustStringFormatter(
`%{color}%{time:15:04:05.000} %{shortfunc} ▶ %{level:.4s} %{id:03x}%{color:reset} %{message}`, `%{color}%{time:15:04:05.000} %{shortfunc} ▶ %{level:.4s} %{id:03x}%{color:reset} %{message}`,
)
) )
var exited bool
var wg sync.WaitGroup
type CTopLogger struct { type CTopLogger struct {
*logging.Logger *logging.Logger