From c989b9f92e1f97928fa3634fa6661a5c14c4d3b5 Mon Sep 17 00:00:00 2001 From: Fedor Korotkiy Date: Thu, 13 Feb 2020 14:54:17 +0300 Subject: [PATCH] Fix lecture --- lectures/00-intro/{ => counter}/counter.go | 0 lectures/00-intro/{ => dup}/dup.go | 0 lectures/00-intro/{ => echo}/echo.go | 0 lectures/00-intro/{ => echo2}/echo2.go | 0 lectures/00-intro/{ => fetchall}/fetchall.go | 0 .../00-intro/{ => helloworld}/helloworld.go | 0 lectures/00-intro/lecture.slide | 22 +++++++++---------- lectures/00-intro/{ => urlfetch}/urlfetch.go | 0 lectures/00-intro/{ => web}/web.go | 0 9 files changed, 11 insertions(+), 11 deletions(-) rename lectures/00-intro/{ => counter}/counter.go (100%) rename lectures/00-intro/{ => dup}/dup.go (100%) rename lectures/00-intro/{ => echo}/echo.go (100%) rename lectures/00-intro/{ => echo2}/echo2.go (100%) rename lectures/00-intro/{ => fetchall}/fetchall.go (100%) rename lectures/00-intro/{ => helloworld}/helloworld.go (100%) rename lectures/00-intro/{ => urlfetch}/urlfetch.go (100%) rename lectures/00-intro/{ => web}/web.go (100%) diff --git a/lectures/00-intro/counter.go b/lectures/00-intro/counter/counter.go similarity index 100% rename from lectures/00-intro/counter.go rename to lectures/00-intro/counter/counter.go diff --git a/lectures/00-intro/dup.go b/lectures/00-intro/dup/dup.go similarity index 100% rename from lectures/00-intro/dup.go rename to lectures/00-intro/dup/dup.go diff --git a/lectures/00-intro/echo.go b/lectures/00-intro/echo/echo.go similarity index 100% rename from lectures/00-intro/echo.go rename to lectures/00-intro/echo/echo.go diff --git a/lectures/00-intro/echo2.go b/lectures/00-intro/echo2/echo2.go similarity index 100% rename from lectures/00-intro/echo2.go rename to lectures/00-intro/echo2/echo2.go diff --git a/lectures/00-intro/fetchall.go b/lectures/00-intro/fetchall/fetchall.go similarity index 100% rename from lectures/00-intro/fetchall.go rename to lectures/00-intro/fetchall/fetchall.go diff --git a/lectures/00-intro/helloworld.go b/lectures/00-intro/helloworld/helloworld.go similarity index 100% rename from lectures/00-intro/helloworld.go rename to lectures/00-intro/helloworld/helloworld.go diff --git a/lectures/00-intro/lecture.slide b/lectures/00-intro/lecture.slide index 256a2ca..47fdad1 100644 --- a/lectures/00-intro/lecture.slide +++ b/lectures/00-intro/lecture.slide @@ -25,7 +25,7 @@ * Hello world -.play -edit helloworld.go +.play -edit helloworld/helloworld.go * Go @@ -82,7 +82,7 @@ Language * Hello World -.play -edit helloworld.go +.play -edit helloworld/helloworld.go : Как запустить. В презентации и в CLI. : Что такое пакет. @@ -93,7 +93,7 @@ Language * echo -.play -edit echo.go +.play -edit echo/echo.go : Слайсы. s[n:m], s[i], len(s). : var создаёт переменную. Инициализация zero value. @@ -120,7 +120,7 @@ Language * echo2 -.play -edit echo2.go +.play -edit echo2/echo2.go * Range @@ -151,7 +151,7 @@ Language * dup -.play -edit dup.go +.play -edit dup/dup.go : map. Создаётся через make(). Значения инициализируются нулём. Ключ должен иметь ==. : Итерация по map. @@ -175,23 +175,23 @@ Language * urlfetch -.code urlfetch.go /func main/,/^}/ +.code urlfetch/urlfetch.go /func main/,/^}/ * fetchall -.code fetchall.go /func main/,/^}/ +.code fetchall/fetchall.go /func main/,/^}/ * fetchall -.code fetchall.go /func fetch/,/^}/ +.code fetchall/fetchall.go /func fetch/,/^}/ * webserver -.code web.go +.code web/web.go -* webserver +* counter -.code counter.go +.code counter/counter.go /var/, * switch diff --git a/lectures/00-intro/urlfetch.go b/lectures/00-intro/urlfetch/urlfetch.go similarity index 100% rename from lectures/00-intro/urlfetch.go rename to lectures/00-intro/urlfetch/urlfetch.go diff --git a/lectures/00-intro/web.go b/lectures/00-intro/web/web.go similarity index 100% rename from lectures/00-intro/web.go rename to lectures/00-intro/web/web.go