Use any instead of interface{}
Signed-off-by: chenyahui <cyhone@qq.com>
This commit is contained in:
@ -51,7 +51,7 @@ func (p *pbPrinter) Watch(r v3.WatchResponse) {
|
||||
printPB(&wr)
|
||||
}
|
||||
|
||||
func printPB(v interface{}) {
|
||||
func printPB(v any) {
|
||||
m, ok := v.(pbMarshal)
|
||||
if !ok {
|
||||
cobrautl.ExitWithError(cobrautl.ExitBadFeature, fmt.Errorf("marshal unsupported for type %T (%v)", v, v))
|
||||
|
Reference in New Issue
Block a user