Skip to content

first commit#1

Open
xails-git wants to merge 3 commits into
mainfrom
first-iteration
Open

first commit#1
xails-git wants to merge 3 commits into
mainfrom
first-iteration

Conversation

@xails-git
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

@dirtymew dirtymew left a comment

Choose a reason for hiding this comment

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

Привет Алексей

работа оформлена верно - отлично

по самой работе нужно немного поправить и она будет принята

Comment thread internal/daysteps/daysteps.go Outdated
return ""
}
distance := float64(steps) * StepLength
kmDistance := distance / 10
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kmDistance := distance / 1000 - опечатался @xails-git

для 1000 стоило константу завести

Comment thread internal/daysteps/daysteps.go Outdated

func parsePackage(data string) (int, time.Duration, error) {
// ваш код ниже
var steps int
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

не ошибка - но переменные в go принято обьявлять ближе к тому месте где используются

Comment thread internal/daysteps/daysteps.go Outdated
}

if steps <= 0 {
return ""
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 internal/spentcalories/spentCalories.go Outdated

steps, species, duration, err := parseTraining(data)
if err != nil {
fmt.Errorf("TrainingInfo error parseTraining(data): %w", err)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

return err.Error()

Copy link
Copy Markdown

@dirtymew dirtymew left a comment

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