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