-
Notifications
You must be signed in to change notification settings - Fork 14
Пакет для Go #9
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
Пакет для Go #9
Conversation
… Add annotations to all protos
…proto generation pipeline. - Removed `go.mod` and associated setup from `finam-trade-api-go`. - Introduced `syncGoToRoot` and `generateGoPackage` Gradle tasks for managing Go proto generation. - Updated Go workflows to reflect new structure and Go version (1.24.x). - Adjusted `go_package` paths in proto files for compatibility. - Added detailed Go client `README.md` with usage instructions.
| @@ -0,0 +1,67 @@ | |||
| # Клиент к Finam Trade API для Go | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я не очень понимаю, зачем тут все файлы pb.go. Они ведь собираются с помощью команды build. И я так понимаю устанавливаются с go get github.com/FinamWeb/finam-trade-api/go@latest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Пакет в Go это git репозиторий в котором лежат файлы.
Можно оставить так, либо воспользоваться альтернативным вариантом в описании PR
|
@ViktoriiaLebedeva а с версиями у нас нет конфликтов? |
# Conflicts: # proto/grpc/tradeapi/v1/assets/assets_service.proto
Обзор
В данном пулл-реквесте проведен рефакторинг структуры Go-модуля и реализованы улучшения для оптимизации процессов сборки и генерации proto-файлов для Go-клиента.
В предложенном изменении пакет храниться в текущем репозитории, в дальнейшем при обновлении
protoфайлов, в вете main go пакет и спецификация OpenAPI обновиться автоматически с помощью CI.Изменения
go_packageв proto-файлах для обеспечения совместимости.README.mdдля Go-клиента с инструкциями по использованию.Важно!
Данное изменение добавляет требование версионирование в данном репозитории. Следует перейти на семантическое версионирование 1.9.0 и использовать тэги в git v1.9.0 (сейчас Release-2.8.0)
Использование пакета
Команда установки последней версии: