From cebcc9a518aaed356606132bf1d5f797c44c0f76 Mon Sep 17 00:00:00 2001 From: dongwlin Date: Mon, 9 Sep 2024 18:56:55 +0800 Subject: [PATCH] chore: update examples --- README.md | 6 +++--- README_zh.md | 6 +++--- examples/custom-action/main.go | 2 +- examples/custom-recognizer/main.go | 2 +- examples/quick-start/main.go | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 3f4ae09..51ce322 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ func main() { deviceFinder := toolkit.NewAdbDeviceFinder() deviceFinder.Find() - device := deviceFinder.Get(0) + device := deviceFinder.List()[0] ctrl := maa.NewAdbController( device.GetAdbPath(), device.GetAddress(), @@ -168,7 +168,7 @@ func main() { deviceFinder := toolkit.NewAdbDeviceFinder() deviceFinder.Find() - device := deviceFinder.Get(0) + device := deviceFinder.List()[0] ctrl := maa.NewAdbController( device.GetAdbPath(), device.GetAddress(), @@ -228,7 +228,7 @@ func main() { deviceFinder := toolkit.NewAdbDeviceFinder() deviceFinder.Find() - device := deviceFinder.Get(0) + device := deviceFinder.List()[0] ctrl := maa.NewAdbController( device.GetAdbPath(), device.GetAddress(), diff --git a/README_zh.md b/README_zh.md index 0743c69..ad397c4 100644 --- a/README_zh.md +++ b/README_zh.md @@ -115,7 +115,7 @@ func main() { deviceFinder := toolkit.NewAdbDeviceFinder() deviceFinder.Find() - device := deviceFinder.Get(0) + device := deviceFinder.List()[0] ctrl := maa.NewAdbController( device.GetAdbPath(), device.GetAddress(), @@ -167,7 +167,7 @@ func main() { deviceFinder := toolkit.NewAdbDeviceFinder() deviceFinder.Find() - device := deviceFinder.Get(0) + device := deviceFinder.List()[0] ctrl := maa.NewAdbController( device.GetAdbPath(), device.GetAddress(), @@ -227,7 +227,7 @@ func main() { deviceFinder := toolkit.NewAdbDeviceFinder() deviceFinder.Find() - device := deviceFinder.Get(0) + device := deviceFinder.List()[0] ctrl := maa.NewAdbController( device.GetAdbPath(), device.GetAddress(), diff --git a/examples/custom-action/main.go b/examples/custom-action/main.go index 61db51b..1240c70 100644 --- a/examples/custom-action/main.go +++ b/examples/custom-action/main.go @@ -14,7 +14,7 @@ func main() { deviceFinder := toolkit.NewAdbDeviceFinder() deviceFinder.Find() - device := deviceFinder.Get(0) + device := deviceFinder.List()[0] ctrl := maa.NewAdbController( device.GetAdbPath(), device.GetAddress(), diff --git a/examples/custom-recognizer/main.go b/examples/custom-recognizer/main.go index e9251eb..a7bdf6f 100644 --- a/examples/custom-recognizer/main.go +++ b/examples/custom-recognizer/main.go @@ -15,7 +15,7 @@ func main() { deviceFinder := toolkit.NewAdbDeviceFinder() deviceFinder.Find() - device := deviceFinder.Get(0) + device := deviceFinder.List()[0] ctrl := maa.NewAdbController( device.GetAdbPath(), device.GetAddress(), diff --git a/examples/quick-start/main.go b/examples/quick-start/main.go index 0c6ad81..08767ab 100644 --- a/examples/quick-start/main.go +++ b/examples/quick-start/main.go @@ -14,7 +14,7 @@ func main() { deviceFinder := toolkit.NewAdbDeviceFinder() deviceFinder.Find() - device := deviceFinder.Get(0) + device := deviceFinder.List()[0] ctrl := maa.NewAdbController( device.GetAdbPath(), device.GetAddress(),