Skip to content

first commit#1

Open
xails-git wants to merge 3 commits intomainfrom
first-iteration
Open

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

Conversation

@xails-git
Copy link
Owner

No description provided.

Copy link

@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.

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

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

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

return ""
}
distance := float64(steps) * StepLength
kmDistance := distance / 10
Copy link

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 стоило константу завести


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

Choose a reason for hiding this comment

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

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

}

if steps <= 0 {
return ""
Copy link

Choose a reason for hiding this comment

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

тут тоже стоит свою ошибку напечатать


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

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

@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