You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -19,10 +19,8 @@ Aspose.OCR Cloud SDK for Go is open source under the MIT license. You can freely
19
19
20
20
- Internet connection.
21
21
- Access to the **api.aspose.cloud** domain.
22
-
- Операционка (если вообще роляет; если нет - то все подряд перечислять не надо).
23
-
- Версия Гоу.
24
-
- Сторонние депенденси, если нужно установить.
25
-
- Гоу ведь компилируемый язык, в результате будет стандартное исполняемое приложение, не требующее интерпретатора?
22
+
- Go version 1.18
23
+
- The actual dependencies are listed in go.mod file
26
24
27
25
## Get started
28
26
@@ -56,23 +54,64 @@ Aspose.OCR Cloud follows industry standards and best practices to keep your data
56
54
57
55
### Running demo
58
56
59
-
1. Вот тут надо описать шаги
60
-
2. Чтот надо сделать для запуска демо-приложения
61
-
3. В какую строчку кода вписать **Client ID** и **Client Secret**
62
-
4. И как запустить проект
63
-
5. Как будет готово, я вычитаю. Можно по-русски написать, если будет удобнее.
57
+
1. Clone our repository
58
+
2. Open [examples\example.go](examples\example.go) file and replace "YOUR_CLIENT_ID" and "YOUR_CLIENT_SECRET" with your credentials
59
+
```go
60
+
61
+
funcmain(){
62
+
63
+
clientId:="YOUR_CLIENT_ID"
64
+
clientSecret:="YOUR_CLIENT_SECRET"
65
+
...
66
+
```
67
+
3. Open a new terminal and navigate to the aspose-ocr-cloud-go/example/ directory
68
+
```shell
69
+
cd <path_to_sdk>/aspose-ocr-cloud-go/example/
70
+
```
71
+
4. Run example
72
+
```shell
73
+
go run .\example.go
74
+
```
75
+
5. Files with test results will appear in the aspose-ocr-cloud-go/results/ folder
76
+
77
+
Also, as a demo application, you can use the tests
78
+
1. Clone our repository
79
+
2. Install dependencies
80
+
```shell
81
+
go get github.com/stretchr/testify/assert
82
+
go get github.com/stretchr/testify/require
83
+
go get golang.org/x/oauth2
84
+
```
85
+
2. In the file [test/test_config.go](test/test_config.go) enter **Client ID** and **Client Secret**
86
+
```go
87
+
package asposeocrcloud
88
+
89
+
var (
90
+
ConfigClientID = "YOUR_CLIENT_ID"
91
+
ConfigClientSecret = "YOUR_CLIENT_SECRET"
92
+
)
93
+
```
94
+
3. Open a new terminal and navigate to the aspose-ocr-cloud-go/test/ directory
95
+
```shell
96
+
cd <path_to_sdk>/aspose-ocr-cloud-go/test/
97
+
```
98
+
4. Run the tests with the command
99
+
```
100
+
go test github.com/aspose-ocr-cloud/aspose-ocr-cloud-go/test
101
+
```
102
+
5. Files with test results will appear in the aspose-ocr-cloud-go/results/ folder
64
103
65
104
[Download demo as ZIP archive](https://github.com/aspose-ocr-cloud/aspose-ocr-cloud-go/archive/refs/heads/master.zip)
66
105
67
-
## What was changed in version 23.6.0
106
+
## What was changed in version 23.7.0
68
107
69
108
This is the first release of Aspose.OCR Cloud SDK for Go. It supports all the features of [Aspose.OCR Cloud REST API 23.6.0](https://releases.aspose.cloud/ocr/release-notes/2023/aspose-ocr-cloud-23-6-0-release-notes/).
70
109
71
110
Stay tuned for further updates.
72
111
73
112
### Public API changes and backwards compatibility
74
113
75
-
This section lists all public API changes introduced in **Aspose.OCR Cloud SDK for Go 23.6.0** that may affect the code of existing applications.
114
+
This section lists all public API changes introduced in **Aspose.OCR Cloud SDK for Go 23.7.0** that may affect the code of existing applications.
76
115
77
116
#### Added public APIs:
78
117
@@ -91,8 +130,93 @@ _No changes._
91
130
The example below illustrates how to use Aspose.OCR Cloud SDK for Go to extract text from an image:
92
131
93
132
```go
94
-
Вот на Гоу я ни разу ничего не писал, от слова "совсем"
0 commit comments