Closed kshvakov closed 10 years ago
And don't use reflect for detect type
n := reflect.TypeOf(notificator).String() // check notificator if n == "*notification.gnomeNotificator" { ...
use type switch
Example: https://github.com/kshvakov/notificator/tree/use-switch-type
best regards, Kirill
Thank you @kshvakov, merged.
And don't use reflect for detect type
n := reflect.TypeOf(notificator).String() // check notificator if n == "*notification.gnomeNotificator" { ...
use type switch
Example: https://github.com/kshvakov/notificator/tree/use-switch-type
best regards, Kirill