Skip to content

Первая попытка сдачи промежуточного задания#24

Open
Shtainbook wants to merge 1 commit intoYandex-Practicum:mainfrom
Shtainbook:main
Open

Первая попытка сдачи промежуточного задания#24
Shtainbook wants to merge 1 commit intoYandex-Practicum:mainfrom
Shtainbook:main

Conversation

@Shtainbook
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@lugingf lugingf left a comment

Choose a reason for hiding this comment

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

Принято, но с ignore обязательно надо разобраться и поправить.

Comment thread .idea/.gitignore
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

игнор по идее в корне проекта должен быть

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ну а тут всю папку в игнор, потому что этих файлов не должно быть в репе

Comment thread encoding/encoding.go
"fmt"
"github.com/Yandex-Practicum/final-project-encoding-go/models"
"gopkg.in/yaml.v3"
"os"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Между импортами стандартной либы и сторонними должна быть пустая строка

Comment thread encoding/encoding.go
err = os.WriteFile(j.FileOutput, yamlData, 0644)

if err != nil {
fmt.Printf("ошибка при записи содержимого yamlData: %s\n", err.Error())
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Вообще по всем ошибкам - лучше ошибку оборачивать с комментарием, например с помощью fmt.Errorf("бла бла бла: %w", err)
А логи писать если надо что-то уточнить или отдебажить

Comment thread jsonInput.json
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

не уверен что эти файлы должны быть в репо

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.

2 participants