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

No description provided.

Copy link

@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 обязательно надо разобраться и поправить.

Copy link

Choose a reason for hiding this comment

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

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

Copy link

Choose a reason for hiding this comment

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

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

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

Choose a reason for hiding this comment

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

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

err = os.WriteFile(j.FileOutput, yamlData, 0644)

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

Choose a reason for hiding this comment

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

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

Copy link

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