lectures's Introduction
lectures's People
Forkers
jarik1112 k1ola nikitarub antonpriyma zelflod vltimoshenko andronovdima astrep evilborsch esuwu lunex08 sergii1 paul-ss felix1green rudneff aleksk1ng saperr001 snikimonkd sergei39 shayhmaksim altanab astlok mollenar kadyrovsuleyman vr009 svetlanlka alexqrid restlesswhy ngalkin91 petrenkilya rinatkh ur-os sovadim isaqueveras z-urvancev a-kuleshov akimegorov fackoff25 ynastt ianmuhia thelvv sapun4ik qqq4u kolobokmysnoy kaymekaydex z-sector ned8800 mafin1799 ellexo2456 mrdjeb vilinvil ccianos sanexpett fuvy fedasov alexeilddlectures's Issues
Надо ли закрывать тело запроса у сервера?
lectures/3/2_http/40_requests.go
Line 22 in eda1746
в документации к http.Requst сказано
For server requests, the Request Body is always non-nil but will return EOF immediately when no body is present. The Server will close the request body. The ServeHTTP Handler does not need to.
Обсуждение этого вопроса на стаковерфлоу
Баг в лекции про безопасность
lectures/7-security/1_passwords/1_salt.go
Lines 16 to 20 in 2b72378
Слайс passHash меняется внутри функции hashPass(), т.к. salt получили через срез слайса passHash и он указывает на ту же память. Функция считает любые пароли равными :D
17 строчку можно заменить на:
salt := make([]byte, 8) copy(salt, passHash[:8])
Опечатка в ДЗ2
Файл main_test.go
, перепутаны местами переменные в логе теста:
Как сейчас
assert.Less(t, timeEnd, expectedTime, "слишком долгоe выполнение. что-то где-то нераспараллелено. должно быть не больше, чем %s, а было %s", timeEnd, expectedTime)
Как должно
assert.Less(t, timeEnd, expectedTime, "слишком долгоe выполнение. что-то где-то нераспараллелено. должно быть не больше, чем %s, а было %s", expectedTime, timeEnd)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.