Skip to content

CP-47358, CP-47361: Generate convert functions Go code #5603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
May 11, 2024

Conversation

duobei
Copy link
Contributor

@duobei duobei commented Apr 30, 2024

  1. Add templates for convert functions
  2. Generate convert functions Go code

@duobei duobei force-pushed the private/fezhan/CP-47358 branch from 854f60a to ac0480c Compare April 30, 2024 08:05
duobei added 2 commits April 30, 2024 20:17
…unctions

Signed-off-by: xueqingz <xueqing.zhang@citrix.com>
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
@duobei duobei force-pushed the private/fezhan/CP-47358 branch from ac0480c to 344e629 Compare April 30, 2024 13:18
@duobei duobei requested a review from xueqingz May 9, 2024 02:19
@xueqingz
Copy link
Contributor

xueqingz commented May 9, 2024

Checking the Go lint format pass with:

root@3eea0d3e0e5d:/app/go/goSDK# golangci-lint run --config=/app/.golangci.yml
WARN The linter 'gomnd' is deprecated (since v1.58.0) due to: The linter has been renamed. Replaced by mnd. 
WARN The linter 'execinquery' is deprecated (since v1.58.0) due to: The repository of the linter has been archived by the owner.  
0 issues.

Test with xenserver-samples Go project. No special issues found on 7b88aa5.

@xueqingz
Copy link
Contributor

xueqingz commented May 9, 2024

The test Go files naming with different format , could we use same rules for all convert test go files? like xx_convert.go?

@duobei
Copy link
Contributor Author

duobei commented May 9, 2024

The test Go files naming with different format , could we use same rules for all convert test go files? like xx_convert.go?

Sure.

duobei and others added 10 commits May 11, 2024 13:06
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
…lass messages

Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
…h_enums`

Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
Signed-off-by: xueqingz <xueqing.zhang@citrix.com>
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
changed templates: APIVersions.mustache,APIErrors.mustache, Record.mustache

Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
Signed-off-by: xueqingz <xueqing.zhang@citrix.com>
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
@duobei duobei force-pushed the private/fezhan/CP-47358 branch from 7b88aa5 to e2a4919 Compare May 11, 2024 06:02
Copy link
Contributor

@xueqingz xueqingz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Golang lint check pass on commit 663e38, no special error found during samples test.

@duobei duobei merged commit f7f2c6a into xapi-project:feature/go_sdk May 11, 2024
13 checks passed
Copy link

pytype_reporter extracted 50 problem reports from pytype output

.

You can check the results of the job here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants