diff --git a/commands/commands.go b/commands/commands.go index a1dec0b..98f7248 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -15,7 +15,7 @@ const ( Ping = Command("/ping") TodayLessons = Command("/today_lessons") TomorrowLessons = Command("/tomorrow_lessons") - AllLessons = Command("/all_lessons") + AllLessons = Command("/all_lessons") Weather = Command("/weather") NewYear = Command("/new_year") ) diff --git a/main.go b/main.go index 8575228..98c6bba 100644 --- a/main.go +++ b/main.go @@ -190,7 +190,7 @@ func run() { sendTomorrowLessonsToChat(bot, chatID, "Завтра, "+update.Message.From.FirstName+", эти пары:") case commands.AllLessons: - sendAllLessonsToChat(bot, chatID, "Пока знаю про эти пары:") + sendAllLessonsToChat(bot, chatID, "Пока знаю про эти пары:") case commands.Weather: w, err := weather.GetWeatherWithCache(opts.Key, 53.346853, 83.777012, time.Hour) diff --git a/parser/examples/main.go b/parser/examples/main.go index 91968e4..b8a9626 100644 --- a/parser/examples/main.go +++ b/parser/examples/main.go @@ -8,6 +8,6 @@ import ( ) func main() { - lessons := parser.ParseByDay(date.Today(-48*time.Hour)) + lessons := parser.ParseByDay(date.Today(-48 * time.Hour)) fmt.Println(lessons) } diff --git a/parser/parser.go b/parser/parser.go index 95b155b..a064ad3 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -32,7 +32,7 @@ func parse() []Lesson { l := Lesson{ Number: "", TimeStart: event.Start, - TimeMsg: event.Start.Format("15:04") + " - " + event.End.Format("15:04"), + TimeMsg: event.Start.Format("15:04") + " - " + event.End.Format("15:04"), Name: event.Summary, User: event.Description, Place: event.Location,