diff --git a/examples/command-line-flags/command-line-flags.go b/examples/command-line-flags/command-line-flags.go index 681ba7032..6d079271a 100644 --- a/examples/command-line-flags/command-line-flags.go +++ b/examples/command-line-flags/command-line-flags.go @@ -1,6 +1,6 @@ // [_Флаги командной строки_](http://en.wikipedia.org/wiki/Command-line_interface#Command-line_option) // являются распространенным способом задания параметров -// для программ командной строки. Например, в `wc -l` - `-l` +// для программ командной строки. Например, в `wc -l` где `--l` // является флагом командной строки. package main diff --git a/examples/command-line-flags/command-line-flags.hash b/examples/command-line-flags/command-line-flags.hash index 2262d76f6..05a1e5f03 100644 --- a/examples/command-line-flags/command-line-flags.hash +++ b/examples/command-line-flags/command-line-flags.hash @@ -1,2 +1,2 @@ -e316c57acf4cc993f182f2d341a608a1eac4a551 -_r_-ZzDzQUH +15e5556c692ba76af819911467a8f5ef163aa9e4 +sZox5nVKyXl diff --git a/examples/execing-processes/execing-processes.sh b/examples/execing-processes/execing-processes.sh index e7c9a527b..7f0053941 100644 --- a/examples/execing-processes/execing-processes.sh +++ b/examples/execing-processes/execing-processes.sh @@ -1,4 +1,5 @@ -# When we run our program it is replaced by `ls`. +# Когда мы запускаем нашу программу, +# она заменяется на `ls`. $ go run execing-processes.go total 16 drwxr-xr-x 4 mark 136B Oct 3 16:29 . diff --git a/examples/json/json.go b/examples/json/json.go index 920b4f8a2..4f8daa4df 100644 --- a/examples/json/json.go +++ b/examples/json/json.go @@ -106,7 +106,7 @@ func main() { // Мы также можем декодировать JSON в пользовательские // типы данных. Это дает преимущество добавления // дополнительной безопасности типов в наши программы - // и устранения необходимости в определении типрв + // и устранения необходимости в определении типов // при доступе к декодированным данным. str := `{"page": 1, "fruits": ["apple", "peach"]}` res := response2{} diff --git a/examples/json/json.hash b/examples/json/json.hash index 5da3b7015..f59d5710f 100644 --- a/examples/json/json.hash +++ b/examples/json/json.hash @@ -1,2 +1,2 @@ -cabda206e7e0a15d45b7460b6f5ec6df961809eb -Lky4Hyyl2-t +45e5853ec2ac6af88c82f1d39e0503e474f80816 +e4gEbm50zaY diff --git a/examples/random-numbers/random-numbers.go b/examples/random-numbers/random-numbers.go index f06cbe459..8458cdead 100644 --- a/examples/random-numbers/random-numbers.go +++ b/examples/random-numbers/random-numbers.go @@ -31,7 +31,7 @@ func main() { // Генератор чисел по умолчанию является детерминированным, // поэтому по умолчанию он будет каждый раз генерировать // одну и ту же последовательность чисел. Чтобы произвести - // различные последовательности, дайте ему `соль`(https://ru.wikipedia.org/wiki/Соль_(криптография)), + // различные последовательности, дайте ему [соль](https://ru.wikipedia.org/wiki/Соль_(криптография)), // которая изменяется. Обратите внимание, что это не // безопасно использовать для генерации случайных чисел, // которые вы намерены хранить в секрете, используйте diff --git a/examples/random-numbers/random-numbers.hash b/examples/random-numbers/random-numbers.hash index acd183645..e00bf9420 100644 --- a/examples/random-numbers/random-numbers.hash +++ b/examples/random-numbers/random-numbers.hash @@ -1,2 +1,2 @@ -03975452ff4c127a4a78897643ce3eca0b90b239 -CKeOTktHnJe +b240af67c12c1d5c3006ae473ee2cd3b8cb62857 +-ho7_wXRsJp diff --git a/examples/recursion/recursion.go b/examples/recursion/recursion.go index 52ab4b20b..f30c5f0fc 100644 --- a/examples/recursion/recursion.go +++ b/examples/recursion/recursion.go @@ -6,7 +6,7 @@ package main import "fmt" -// Фукция `fact` вызывает себя по не достигнет +// Фукция `fact` вызывает себя пока не достигнет // `fact(0)`. func fact(n int) int { if n == 0 { diff --git a/examples/recursion/recursion.hash b/examples/recursion/recursion.hash index 26a2e365f..b1e5e2d65 100644 --- a/examples/recursion/recursion.hash +++ b/examples/recursion/recursion.hash @@ -1,2 +1,2 @@ -b75f7597af0526d0fefb481ef7987b5e186c0c04 -oPbHEHLaRrN +0e5cd8b9cd953be6677cff880f8949c906a06aa7 +gNfRtchhIkR diff --git a/examples/slices/slices.go b/examples/slices/slices.go index 43bb3b78d..b7af34d97 100644 --- a/examples/slices/slices.go +++ b/examples/slices/slices.go @@ -10,8 +10,8 @@ func main() { // В отличии от массивов, длина среза зависит от содержащихся // в срезе элементов, а не определена при инициализации. - // Создать пустой срез в ненулевой длиной можно используя - // оператор `make`. В этом пример мы создаем слайс строк + // Создать пустой срез с ненулевой длиной можно используя + // оператор `make`. В этом пример мы создаем срез строк // длиной 3 (заполненный нулевыми значениями). s := make([]string, 3) fmt.Println("emp:", s) @@ -29,7 +29,7 @@ func main() { // В дополнение к базовой функциональности, срезы // имеют несколько дополнительных особенностей // по сравнению с массивыми. Одна из них - `append`, - // которая возвращает срезу содержащий одно или более + // которая возвращает срез содержащий одно или более // новых значений. Обратите внимание, что результат // функции `append` необходимо присвоить в переменную, // т.к. это уже будет новый срез. diff --git a/examples/slices/slices.hash b/examples/slices/slices.hash index a4ad5e801..2b6805608 100644 --- a/examples/slices/slices.hash +++ b/examples/slices/slices.hash @@ -1,2 +1,2 @@ -97236c6deebee661d0bd1e696b12e4ea671d06ff -32lRsL-MYrP +88a69ba65064391e3fe522152c715dd6bf8088d0 +YFjKhMajfcI diff --git a/examples/sorting-by-functions/sorting-by-functions.go b/examples/sorting-by-functions/sorting-by-functions.go index e52dc97b7..41c738d1d 100644 --- a/examples/sorting-by-functions/sorting-by-functions.go +++ b/examples/sorting-by-functions/sorting-by-functions.go @@ -17,7 +17,7 @@ import ( // `[]string`. type byLength []string -// Мы реализуем `sort.Interface` - Len`, `Less` и `Swap` +// Мы реализуем `sort.Interface - Len`, `Less` и `Swap` // - для нашего типа, чтобы мы могли использовать общую // функцию `Sort` пакета `sort`. `Len` и `Swap` обычно // одинаковы для разных типов, а `Less` будет содержать diff --git a/examples/sorting-by-functions/sorting-by-functions.hash b/examples/sorting-by-functions/sorting-by-functions.hash index 374e267ad..ee66a72cb 100644 --- a/examples/sorting-by-functions/sorting-by-functions.hash +++ b/examples/sorting-by-functions/sorting-by-functions.hash @@ -1,2 +1,2 @@ -0252f365e73e310a8f4dc4431f598ffcea3efc72 -VQrgvKKcvRg +222a561c36a8e0637785f69e83c55ed0fa1c3933 +SYcAi9z2B1D diff --git a/examples/spawning-processes/spawning-processes.go b/examples/spawning-processes/spawning-processes.go index f771227bd..ddb059570 100644 --- a/examples/spawning-processes/spawning-processes.go +++ b/examples/spawning-processes/spawning-processes.go @@ -22,7 +22,7 @@ func main() { dateCmd := exec.Command("date") // `.Output` - это еще один хелпер, который обрабатывает - // общий случай запуска команды, ожидаетее завершения + // общий случай запуска команды, ожидает ее завершения // и сбора выходных данных. Если ошибок не было, `dateOut` // будет содержать байты с информацией о дате. dateOut, err := dateCmd.Output() diff --git a/examples/spawning-processes/spawning-processes.hash b/examples/spawning-processes/spawning-processes.hash index 2ccab24a5..a9b3c290c 100644 --- a/examples/spawning-processes/spawning-processes.hash +++ b/examples/spawning-processes/spawning-processes.hash @@ -1,2 +1,2 @@ -4984e90d62323e378c35e5c52d0c5646fd150d82 -2QNUQPuiFlR +810dedfcf63c028e6f0764459ce6c4affb9c584e +Dr6xNNP4WIq diff --git a/examples/stateful-goroutines/stateful-goroutines.go b/examples/stateful-goroutines/stateful-goroutines.go index a26e60cf4..b87ff5934 100644 --- a/examples/stateful-goroutines/stateful-goroutines.go +++ b/examples/stateful-goroutines/stateful-goroutines.go @@ -24,14 +24,6 @@ import ( // и получать соответствующие ответы. Эти `структуры` // `readOp` и `writeOp` инкапсулируют эти запросы и // способ, которым владеет горутина-ответчик. -// In this example our state will be owned by a single -// goroutine. This will guarantee that the data is never -// corrupted with concurrent access. In order to read or -// write that state, other goroutines will send messages -// to the owning goroutine and receive corresponding -// replies. These `readOp` and `writeOp` `struct`s -// encapsulate those requests and a way for the owning -// goroutine to respond. type readOp struct { key int resp chan int @@ -63,7 +55,7 @@ func main() { // выполняется, сначала выполняя запрошенную операцию, // а затем отправляя значение по каналу `resp`, // соответственно, чтобы указать успешность (и - // ребуемое значение в случае `reads`). + // требуемое значение в случае `reads`). go func() { var state = make(map[int]int) for { diff --git a/examples/stateful-goroutines/stateful-goroutines.hash b/examples/stateful-goroutines/stateful-goroutines.hash index bb70ee5e7..b754fa3c0 100644 --- a/examples/stateful-goroutines/stateful-goroutines.hash +++ b/examples/stateful-goroutines/stateful-goroutines.hash @@ -1,2 +1,2 @@ -e7e07404454809cbacb719ad94e70726d22dacc1 -n_gVZus4DBP +2cdd12a991177c814a3e32e24749d6d9ffbf2312 +aqM_1xxuq7r diff --git a/examples/testing/main_test.sh b/examples/testing/main_test.sh index 58e0615e5..197af9dec 100644 --- a/examples/testing/main_test.sh +++ b/examples/testing/main_test.sh @@ -1,4 +1,5 @@ -# Run all tests in the current project in verbose mode. +# Запустите все тесты в текущем проекте +# в подробном режиме. $ go test -v == RUN TestIntMinBasic --- PASS: TestIntMinBasic (0.00s) diff --git a/examples/time-formatting-parsing/time-formatting-parsing.go b/examples/time-formatting-parsing/time-formatting-parsing.go index 2b9146c7c..9a5664d15 100644 --- a/examples/time-formatting-parsing/time-formatting-parsing.go +++ b/examples/time-formatting-parsing/time-formatting-parsing.go @@ -1,5 +1,5 @@ -// Go supports time formatting and parsing via -// pattern-based layouts. +// Go поддерживает форматирование времени и синтаксический анализ с помощью +// шаблонов. package main @@ -22,7 +22,7 @@ func main() { "2012-11-01T22:08:41+00:00") p(t1) - // `Форматирование` и `парсинг` используют аргументы на + // `Format` и `Parse` используют аргументы на // основе примеров. Обычно вы используете константу из пакета // `time`, но вы также можете предоставить собственные шаблоны. // Они должны использовать время в формате `Mon Jan 2 diff --git a/examples/time-formatting-parsing/time-formatting-parsing.hash b/examples/time-formatting-parsing/time-formatting-parsing.hash index 892e30ee3..34df94198 100644 --- a/examples/time-formatting-parsing/time-formatting-parsing.hash +++ b/examples/time-formatting-parsing/time-formatting-parsing.hash @@ -1,2 +1,2 @@ -7a8299db21f9554a2b43ecece2d8abf7a370189c -G61ruGfMQZA +dc784c5a04f6bcceacbc76bf659e0e07084a4de7 +fpQ-IsgHlfz diff --git a/examples/timeouts/timeouts.go b/examples/timeouts/timeouts.go index 4ad9f4a0f..915b90b8c 100644 --- a/examples/timeouts/timeouts.go +++ b/examples/timeouts/timeouts.go @@ -17,7 +17,7 @@ func main() { // через 2с. Обратите внимание, что канал буферизован, // поэтому отправка в goroutine неблокирующая. Это // обычная схема предотвращения утечек горутин в случае, - // если канал никогда не читается.ё + // если канал никогда не читается. c1 := make(chan string, 1) go func() { time.Sleep(2 * time.Second) diff --git a/examples/timeouts/timeouts.hash b/examples/timeouts/timeouts.hash index 91d44dcf7..fd3910b82 100644 --- a/examples/timeouts/timeouts.hash +++ b/examples/timeouts/timeouts.hash @@ -1,2 +1,2 @@ -441dc07d57c03df070488f85dbe24e5ef6591bf7 -SCMyPsGlXtX +62241e25b9e042cacdd4f34c10dfad730c08bb2f +6_8aNKFjm74 diff --git a/examples/waitgroups/waitgroups.go b/examples/waitgroups/waitgroups.go index db894db86..dc0f28b55 100644 --- a/examples/waitgroups/waitgroups.go +++ b/examples/waitgroups/waitgroups.go @@ -26,7 +26,7 @@ func worker(id int, wg *sync.WaitGroup) { func main() { // Эта WaitGroup используется для ожидания выполнения - // всех горутинё запущенных здесь. + // всех горутин запущенных здесь. var wg sync.WaitGroup // Запускаем несколько горутин и инкрементируем счетчик diff --git a/examples/waitgroups/waitgroups.hash b/examples/waitgroups/waitgroups.hash index 127b5e638..a0057c692 100644 --- a/examples/waitgroups/waitgroups.hash +++ b/examples/waitgroups/waitgroups.hash @@ -1,2 +1,2 @@ -e2776c97c7388b32808049205e557be97f74fb9c -NiNMDeuci4O +5eab93f2c01cde6a032e332b557facb6a4e409b3 +MPa8JFd9rHA diff --git a/examples/waitgroups/waitgroups.sh b/examples/waitgroups/waitgroups.sh index 9ab663946..741a3ea05 100644 --- a/examples/waitgroups/waitgroups.sh +++ b/examples/waitgroups/waitgroups.sh @@ -10,5 +10,5 @@ Worker 2 done Worker 5 done Worker 3 done -# Порядок воркеров начинающихся и выполненных, вероятно +# Порядок воркеров начинающихся и выполненных, вероятно, # будет изменяться при каждом запуске. diff --git a/public/arrays b/public/arrays index abce14f3a..6416444d7 100644 --- a/public/arrays +++ b/public/arrays @@ -209,7 +209,7 @@ diff --git a/public/atomic-counters b/public/atomic-counters index 890cf1130..731d2c5d3 100644 --- a/public/atomic-counters +++ b/public/atomic-counters @@ -236,7 +236,7 @@ diff --git a/public/base64-encoding b/public/base64-encoding index cb8a19eb2..aa3d8dbdf 100644 --- a/public/base64-encoding +++ b/public/base64-encoding @@ -194,7 +194,7 @@ URL-совместимый base64 формат.

diff --git a/public/channel-buffering b/public/channel-buffering index 6a9847423..76cc90966 100644 --- a/public/channel-buffering +++ b/public/channel-buffering @@ -155,7 +155,7 @@ diff --git a/public/channel-directions b/public/channel-directions index 617eac80f..2ea99b2d9 100644 --- a/public/channel-directions +++ b/public/channel-directions @@ -147,7 +147,7 @@ diff --git a/public/channel-synchronization b/public/channel-synchronization index 6eb7b2009..3ef367e16 100644 --- a/public/channel-synchronization +++ b/public/channel-synchronization @@ -187,7 +187,7 @@ diff --git a/public/channels b/public/channels index b5d5deb42..2db05e426 100644 --- a/public/channels +++ b/public/channels @@ -170,7 +170,7 @@ diff --git a/public/closing-channels b/public/closing-channels index 6e552f00d..47e76eb96 100644 --- a/public/closing-channels +++ b/public/closing-channels @@ -196,7 +196,7 @@ diff --git a/public/closures b/public/closures index 90013c83f..467dbf8b6 100644 --- a/public/closures +++ b/public/closures @@ -192,7 +192,7 @@ diff --git a/public/collection-functions b/public/collection-functions index f013032b9..076b416dd 100644 --- a/public/collection-functions +++ b/public/collection-functions @@ -373,7 +373,7 @@ diff --git a/public/command-line-arguments b/public/command-line-arguments index e5658da7f..9a77c5c3b 100644 --- a/public/command-line-arguments +++ b/public/command-line-arguments @@ -176,7 +176,7 @@ diff --git a/public/command-line-flags b/public/command-line-flags index 1eb49f782..e5b07d4ef 100644 --- a/public/command-line-flags +++ b/public/command-line-flags @@ -29,7 +29,7 @@

Флаги командной строки являются распространенным способом задания параметров -для программ командной строки. Например, в wc -l - -l +для программ командной строки. Например, в wc -l где --l является флагом командной строки.

@@ -44,7 +44,7 @@ - +
package main
 
@@ -317,7 +317,7 @@ diff --git a/public/command-line-subcommands b/public/command-line-subcommands index 16f2faadc..9610074a1 100644 --- a/public/command-line-subcommands +++ b/public/command-line-subcommands @@ -265,7 +265,7 @@ diff --git a/public/constants b/public/constants index 29cf7e33b..560362405 100644 --- a/public/constants +++ b/public/constants @@ -185,7 +185,7 @@ diff --git a/public/defer b/public/defer index 6dbf1cdaa..18e686288 100644 --- a/public/defer +++ b/public/defer @@ -215,7 +215,7 @@ diff --git a/public/directories b/public/directories index 03d267a76..676f5fb0f 100644 --- a/public/directories +++ b/public/directories @@ -355,7 +355,7 @@ diff --git a/public/environment-variables b/public/environment-variables index 4f747c5f6..22a1cfebb 100644 --- a/public/environment-variables +++ b/public/environment-variables @@ -189,7 +189,7 @@ diff --git a/public/epoch b/public/epoch index bd8dc462d..87061ce69 100644 --- a/public/epoch +++ b/public/epoch @@ -178,7 +178,7 @@ Unixtime в соответствующее время.

diff --git a/public/errors b/public/errors index 1384e74df..12972e55a 100644 --- a/public/errors +++ b/public/errors @@ -300,7 +300,7 @@ diff --git a/public/execing-processes b/public/execing-processes index 599159f00..3adcffa3e 100644 --- a/public/execing-processes +++ b/public/execing-processes @@ -159,7 +159,8 @@ -

When we run our program it is replaced by ls.

+

Когда мы запускаем нашу программу, +она заменяется на ls.

@@ -204,7 +205,7 @@ Unix функцию форка. Обычно это не пробл diff --git a/public/file-paths b/public/file-paths index 6f24ba826..ea03afdab 100644 --- a/public/file-paths +++ b/public/file-paths @@ -252,7 +252,7 @@ Linux против dir\file в Windows.

diff --git a/public/for b/public/for index dc5b3361a..53b5f12af 100644 --- a/public/for +++ b/public/for @@ -197,7 +197,7 @@ diff --git a/public/functions b/public/functions index 6ce35abfe..ded7547cd 100644 --- a/public/functions +++ b/public/functions @@ -196,7 +196,7 @@ diff --git a/public/goroutines b/public/goroutines index f9232e85a..a1e2ebaf5 100644 --- a/public/goroutines +++ b/public/goroutines @@ -209,7 +209,7 @@ diff --git a/public/http-clients b/public/http-clients index 9410983fd..1e2723fcd 100644 --- a/public/http-clients +++ b/public/http-clients @@ -170,7 +170,7 @@ diff --git a/public/http-servers b/public/http-servers index a7471e73a..b627f7ca8 100644 --- a/public/http-servers +++ b/public/http-servers @@ -213,7 +213,7 @@ diff --git a/public/if-else b/public/if-else index 899d3cb3b..84d3bf67e 100644 --- a/public/if-else +++ b/public/if-else @@ -186,7 +186,7 @@ diff --git a/public/interfaces b/public/interfaces index f93982857..23f58b05d 100644 --- a/public/interfaces +++ b/public/interfaces @@ -237,7 +237,7 @@ diff --git a/public/json b/public/json index 45cae374c..50263d773 100644 --- a/public/json +++ b/public/json @@ -43,7 +43,7 @@ - +
package main
 
@@ -324,7 +324,7 @@ JSON может поместить декодированные данные.

Мы также можем декодировать JSON в пользовательские типы данных. Это дает преимущество добавления дополнительной безопасности типов в наши программы -и устранения необходимости в определении типрв +и устранения необходимости в определении типов при доступе к декодированным данным.

@@ -419,7 +419,7 @@ JSON может поместить декодированные данные. diff --git a/public/line-filters b/public/line-filters index b97b43550..89cd99f57 100644 --- a/public/line-filters +++ b/public/line-filters @@ -209,7 +209,7 @@ diff --git a/public/maps b/public/maps index 978239b2a..ad15d71c0 100644 --- a/public/maps +++ b/public/maps @@ -234,7 +234,7 @@ Go (иногда называемый хешами).

diff --git a/public/methods b/public/methods index ade1a9401..0a650d5d2 100644 --- a/public/methods +++ b/public/methods @@ -200,7 +200,7 @@ diff --git a/public/multiple-return-values b/public/multiple-return-values index e835a7a14..65e132c59 100644 --- a/public/multiple-return-values +++ b/public/multiple-return-values @@ -171,7 +171,7 @@ diff --git a/public/mutexes b/public/mutexes index bd14eb67b..e0bfe3130 100644 --- a/public/mutexes +++ b/public/mutexes @@ -300,7 +300,7 @@ diff --git a/public/non-blocking-channel-operations b/public/non-blocking-channel-operations index 9997902db..8fab7e6ea 100644 --- a/public/non-blocking-channel-operations +++ b/public/non-blocking-channel-operations @@ -181,7 +181,7 @@ diff --git a/public/number-parsing b/public/number-parsing index 301068d65..792ea54cf 100644 --- a/public/number-parsing +++ b/public/number-parsing @@ -216,7 +216,7 @@ diff --git a/public/panic b/public/panic index b2fba236b..4e4ed6422 100644 --- a/public/panic +++ b/public/panic @@ -178,7 +178,7 @@ diff --git a/public/pointers b/public/pointers index c713b7291..a9c545ded 100644 --- a/public/pointers +++ b/public/pointers @@ -194,7 +194,7 @@ diff --git a/public/random-numbers b/public/random-numbers index 4d1b23171..66d6a56cc 100644 --- a/public/random-numbers +++ b/public/random-numbers @@ -42,7 +42,7 @@ - +
package main
 
@@ -129,7 +129,7 @@

Генератор чисел по умолчанию является детерминированным, поэтому по умолчанию он будет каждый раз генерировать одну и ту же последовательность чисел. Чтобы произвести -различные последовательности, дайте ему соль(https://ru.wikipedia.org/wiki/Соль_(криптография)), +различные последовательности, дайте ему соль, которая изменяется. Обратите внимание, что это не безопасно использовать для генерации случайных чисел, которые вы намерены хранить в секрете, используйте @@ -234,7 +234,7 @@ diff --git a/public/range b/public/range index 40892c4f6..00af46deb 100644 --- a/public/range +++ b/public/range @@ -204,7 +204,7 @@ diff --git a/public/range-over-channels b/public/range-over-channels index 447df5ca2..50a237f88 100644 --- a/public/range-over-channels +++ b/public/range-over-channels @@ -155,7 +155,7 @@ diff --git a/public/rate-limiting b/public/rate-limiting index 47bea8292..69ecffbf7 100644 --- a/public/rate-limiting +++ b/public/rate-limiting @@ -265,7 +265,7 @@ diff --git a/public/reading-files b/public/reading-files index df760210b..349770074 100644 --- a/public/reading-files +++ b/public/reading-files @@ -291,7 +291,7 @@ diff --git a/public/recursion b/public/recursion index fceadc022..b42adda5c 100644 --- a/public/recursion +++ b/public/recursion @@ -43,7 +43,7 @@ - +

package main
 
@@ -64,7 +64,7 @@ -

Фукция fact вызывает себя по не достигнет +

Фукция fact вызывает себя пока не достигнет fact(0).

@@ -127,7 +127,7 @@ diff --git a/public/regular-expressions b/public/regular-expressions index 7354e14e9..bfeb7dfd9 100644 --- a/public/regular-expressions +++ b/public/regular-expressions @@ -347,7 +347,7 @@ diff --git a/public/select b/public/select index 8565948be..feeb2f36e 100644 --- a/public/select +++ b/public/select @@ -187,7 +187,7 @@ diff --git a/public/sha1-hashes b/public/sha1-hashes index c2e9e6a85..eb1ffd2ee 100644 --- a/public/sha1-hashes +++ b/public/sha1-hashes @@ -207,7 +207,7 @@ diff --git a/public/signals b/public/signals index 1f3c6a077..12af536df 100644 --- a/public/signals +++ b/public/signals @@ -194,7 +194,7 @@ diff --git a/public/site.js b/public/site.js index e2539fb7e..752e656d0 100644 --- a/public/site.js +++ b/public/site.js @@ -1,17 +1,17 @@ -/*! - * clipboard.js v1.5.13 - * https://zenorocha.github.io/clipboard.js - * - * Licensed MIT © Zeno Rocha - */ -!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Clipboard=t()}}(function(){var t,e,n;return function t(e,n,o){function r(c,a){if(!n[c]){if(!e[c]){var l="function"==typeof require&&require;if(!a&&l)return l(c,!0);if(i)return i(c,!0);var s=new Error("Cannot find module '"+c+"'");throw s.code="MODULE_NOT_FOUND",s}var u=n[c]={exports:{}};e[c][0].call(u.exports,function(t){var n=e[c][1][t];return r(n?n:t)},u,u.exports,t,e,n,o)}return n[c].exports}for(var i="function"==typeof require&&require,c=0;c - +
package main
 
@@ -78,8 +78,8 @@

В отличии от массивов, длина среза зависит от содержащихся в срезе элементов, а не определена при инициализации. -Создать пустой срез в ненулевой длиной можно используя -оператор make. В этом пример мы создаем слайс строк +Создать пустой срез с ненулевой длиной можно используя +оператор make. В этом пример мы создаем срез строк длиной 3 (заполненный нулевыми значениями).

@@ -127,7 +127,7 @@

В дополнение к базовой функциональности, срезы имеют несколько дополнительных особенностей по сравнению с массивыми. Одна из них - append, -которая возвращает срезу содержащий одно или более +которая возвращает срез содержащий одно или более новых значений. Обратите внимание, что результат функции append необходимо присвоить в переменную, т.к. это уже будет новый срез.

@@ -316,7 +316,7 @@ diff --git a/public/sorting b/public/sorting index 374440dfb..3750f7449 100644 --- a/public/sorting +++ b/public/sorting @@ -163,7 +163,7 @@ diff --git a/public/sorting-by-functions b/public/sorting-by-functions index c71e965d1..692b859de 100644 --- a/public/sorting-by-functions +++ b/public/sorting-by-functions @@ -45,7 +45,7 @@ - +
package main
 
@@ -85,14 +85,14 @@ -

Мы реализуем sort.Interface - Len,LessиSwap +

Мы реализуем sort.Interface - Len, Less и Swap - для нашего типа, чтобы мы могли использовать общую -функциюSortпакетаsort.LenиSwapобычно -одинаковы для разных типов, аLessбудет содержать +функцию Sort пакета sort. Len и Swap обычно +одинаковы для разных типов, а Less будет содержать реальную пользовательскую логику сортировки. В нашем случае мы хотим отсортировать в порядке увеличения -длины строки, поэтому мы используемlen(s[i])и -len(s[j])` здесь.

+длины строки, поэтому мы используем len(s[i]) и +len(s[j]) здесь.

@@ -180,7 +180,7 @@ diff --git a/public/spawning-processes b/public/spawning-processes index 996b37c87..651edf70b 100644 --- a/public/spawning-processes +++ b/public/spawning-processes @@ -46,7 +46,7 @@ Go процессы. Например, подсветка синтаксиса - +
package main
 
@@ -100,7 +100,7 @@ Go процессы. Например, подсветка синтаксиса

.Output - это еще один хелпер, который обрабатывает -общий случай запуска команды, ожидаетее завершения +общий случай запуска команды, ожидает ее завершения и сбора выходных данных. Если ошибок не было, dateOut будет содержать байты с информацией о дате.

@@ -262,7 +262,7 @@ Go процессы. Например, подсветка синтаксиса diff --git a/public/stateful-goroutines b/public/stateful-goroutines index 6159b4cce..cd8034c40 100644 --- a/public/stateful-goroutines +++ b/public/stateful-goroutines @@ -48,7 +48,7 @@ Go о совместном использовании памяти путем о - +
package main
 
@@ -81,15 +81,7 @@ Go о совместном использовании памяти путем о горутины будут отправлять сообщения горутин-владельцу и получать соответствующие ответы. Эти структуры readOp и writeOp инкапсулируют эти запросы и -способ, которым владеет горутина-ответчик. -In this example our state will be owned by a single -goroutine. This will guarantee that the data is never -corrupted with concurrent access. In order to read or -write that state, other goroutines will send messages -to the owning goroutine and receive corresponding -replies. These readOp and writeOp structs -encapsulate those requests and a way for the owning -goroutine to respond.

+способ, которым владеет горутина-ответчик.

@@ -161,7 +153,7 @@ goroutine to respond.

выполняется, сначала выполняя запрошенную операцию, а затем отправляя значение по каналу resp, соответственно, чтобы указать успешность (и -ребуемое значение в случае reads).

+требуемое значение в случае reads).

@@ -323,7 +315,7 @@ goroutine to respond.

diff --git a/public/string-formatting b/public/string-formatting index aa8d87281..fc2cb69ce 100644 --- a/public/string-formatting +++ b/public/string-formatting @@ -457,7 +457,7 @@ Go, то есть фрагмент исходного кода, который diff --git a/public/string-functions b/public/string-functions index fe86aaa48..69efb8568 100644 --- a/public/string-functions +++ b/public/string-functions @@ -211,7 +211,7 @@ diff --git a/public/structs b/public/structs index 31545e101..a6693c010 100644 --- a/public/structs +++ b/public/structs @@ -274,7 +274,7 @@ diff --git a/public/switch b/public/switch index 44b0f8b80..8b7832ad0 100644 --- a/public/switch +++ b/public/switch @@ -204,7 +204,7 @@ diff --git a/public/temporary-files-and-directories b/public/temporary-files-and-directories index fabd9c247..86058f9a9 100644 --- a/public/temporary-files-and-directories +++ b/public/temporary-files-and-directories @@ -242,7 +242,7 @@ diff --git a/public/testing b/public/testing index 0d41228cd..a0f2c1e02 100644 --- a/public/testing +++ b/public/testing @@ -193,7 +193,8 @@ -

Run all tests in the current project in verbose mode.

+

Запустите все тесты в текущем проекте +в подробном режиме.

@@ -235,7 +236,7 @@ diff --git a/public/tickers b/public/tickers index 5ee4065dc..fe19162f1 100644 --- a/public/tickers +++ b/public/tickers @@ -175,7 +175,7 @@ diff --git a/public/time b/public/time index 8a28a56db..3a04adf99 100644 --- a/public/time +++ b/public/time @@ -269,7 +269,7 @@ diff --git a/public/time-formatting-parsing b/public/time-formatting-parsing index 30b8f3b22..f8c808e34 100644 --- a/public/time-formatting-parsing +++ b/public/time-formatting-parsing @@ -27,8 +27,8 @@ -

Go supports time formatting and parsing via -pattern-based layouts.

+

Go поддерживает форматирование времени и синтаксический анализ с помощью +шаблонов.

@@ -42,7 +42,7 @@ pattern-based layouts.

- +
package main
 
@@ -110,7 +110,7 @@ RFC3339 с использованием соответствующей конс -

Форматирование и парсинг используют аргументы на +

Format и Parse используют аргументы на основе примеров. Обычно вы используете константу из пакета time, но вы также можете предоставить собственные шаблоны. Они должны использовать время в формате Mon Jan 2 @@ -203,7 +203,7 @@ RFC3339 с использованием соответствующей конс diff --git a/public/timeouts b/public/timeouts index d65e71c9a..7cc5529b9 100644 --- a/public/timeouts +++ b/public/timeouts @@ -44,7 +44,7 @@ - +

package main
 
@@ -85,7 +85,7 @@ через 2с. Обратите внимание, что канал буферизован, поэтому отправка в goroutine неблокирующая. Это обычная схема предотвращения утечек горутин в случае, -если канал никогда не читается.ё

+если канал никогда не читается.

@@ -184,7 +184,7 @@ diff --git a/public/timers b/public/timers index de69aaf8c..54b60fe46 100644 --- a/public/timers +++ b/public/timers @@ -171,7 +171,7 @@ diff --git a/public/url-parsing b/public/url-parsing index e273642f8..62d0bc21d 100644 --- a/public/url-parsing +++ b/public/url-parsing @@ -235,7 +235,7 @@ diff --git a/public/values b/public/values index f4c1096d2..6d1356577 100644 --- a/public/values +++ b/public/values @@ -154,7 +154,7 @@ diff --git a/public/variables b/public/variables index 63d466f67..39b23d09a 100644 --- a/public/variables +++ b/public/variables @@ -186,7 +186,7 @@ diff --git a/public/variadic-functions b/public/variadic-functions index 882432702..3e9935d6b 100644 --- a/public/variadic-functions +++ b/public/variadic-functions @@ -172,7 +172,7 @@ diff --git a/public/waitgroups b/public/waitgroups index 6bcf15cb5..0bceab07b 100644 --- a/public/waitgroups +++ b/public/waitgroups @@ -42,7 +42,7 @@ - +
package main
 
@@ -124,7 +124,7 @@

Эта WaitGroup используется для ожидания выполнения -всех горутинё запущенных здесь.

+всех горутин запущенных здесь.

@@ -196,7 +196,7 @@ -

Порядок воркеров начинающихся и выполненных, вероятно +

Порядок воркеров начинающихся и выполненных, вероятно, будет изменяться при каждом запуске.

@@ -221,7 +221,7 @@ diff --git a/public/worker-pools b/public/worker-pools index 8d4641024..fb91074ee 100644 --- a/public/worker-pools +++ b/public/worker-pools @@ -226,7 +226,7 @@ diff --git a/public/writing-files b/public/writing-files index 19586d7f4..710febaf6 100644 --- a/public/writing-files +++ b/public/writing-files @@ -293,7 +293,7 @@ diff --git a/public/xml b/public/xml index a719581f7..095fb9c56 100644 --- a/public/xml +++ b/public/xml @@ -283,7 +283,7 @@ XML-подобных форматов с пакетом encoding.xml