mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
convert uses of interface{} to any
Done via:
find . -name "*.go" | xargs sed -i -E 's/interface\{\}/any/g'
PiperOrigin-RevId: 487033228
This commit is contained in:
committed by
gVisor bot
parent
c82b70015d
commit
d8aa09e04c
+1
-1
@@ -54,7 +54,7 @@ func (pc *DropCommand) SetFlags(fs *flag.FlagSet) {
|
||||
}
|
||||
|
||||
// Execute implements subcommands.Command.Execute.
|
||||
func (pc *DropCommand) Execute(context.Context, *flag.FlagSet, ...interface{}) subcommands.ExitStatus {
|
||||
func (pc *DropCommand) Execute(context.Context, *flag.FlagSet, ...any) subcommands.ExitStatus {
|
||||
if err := runBasicProgram(dropProgram, pc.device, pc.deviceIndex); err != nil {
|
||||
log.Printf("%v", err)
|
||||
return subcommands.ExitFailure
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ func (pc *PassCommand) SetFlags(fs *flag.FlagSet) {
|
||||
}
|
||||
|
||||
// Execute implements subcommands.Command.Execute.
|
||||
func (pc *PassCommand) Execute(context.Context, *flag.FlagSet, ...interface{}) subcommands.ExitStatus {
|
||||
func (pc *PassCommand) Execute(context.Context, *flag.FlagSet, ...any) subcommands.ExitStatus {
|
||||
if err := runBasicProgram(passProgram, pc.device, pc.deviceIndex); err != nil {
|
||||
log.Printf("%v", err)
|
||||
return subcommands.ExitFailure
|
||||
|
||||
@@ -64,7 +64,7 @@ func (pc *TcpdumpCommand) SetFlags(fs *flag.FlagSet) {
|
||||
}
|
||||
|
||||
// Execute implements subcommands.Command.Execute.
|
||||
func (pc *TcpdumpCommand) Execute(context.Context, *flag.FlagSet, ...interface{}) subcommands.ExitStatus {
|
||||
func (pc *TcpdumpCommand) Execute(context.Context, *flag.FlagSet, ...any) subcommands.ExitStatus {
|
||||
if err := pc.execute(); err != nil {
|
||||
fmt.Printf("%v", err)
|
||||
return subcommands.ExitFailure
|
||||
|
||||
Reference in New Issue
Block a user