Anonymous Quiz
21%
m := map[string]int{}
72%
m := make(map[string]int)
3%
m := map[string]int()
5%
m := new(map[string]int)
💊24👍1
Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚Базу Знаний
Please open Telegram to view this post
VIEW IN TELEGRAM
👍5
Anonymous Quiz
36%
go clean -modcache
16%
go remove -cache
44%
go tidy -cache
3%
go delete -modcache
👍3
Anonymous Quiz
24%
print()
43%
String()
17%
fmt()
16%
toString()
Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚Базу Знаний
Please open Telegram to view this post
VIEW IN TELEGRAM
👍2
Anonymous Quiz
28%
delete(slice, index)
12%
slice.remove(index)
57%
slice = append(slice[:index], slice[index+1:]...)
4%
slice[index] = nil
Anonymous Quiz
83%
Программа завершится с ошибкой
12%
Значение будет проигнорировано
3%
Значение будет добавлено в канал
2%
Канал автоматически откроется
Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚Базу Знаний
Please open Telegram to view this post
VIEW IN TELEGRAM
👍3
Anonymous Quiz
76%
var any interface{}
13%
var any type
7%
var any {}
3%
var any var
Anonymous Quiz
6%
m.exists(key)
6%
exists(m, key)
86%
_, ok := m[key]
2%
m.contains(key)
👍2
Классический цикл с условиями (for i := 0; i < 10; i++).
Цикл с проверкой условия (for i < 10).
Бесконечный цикл (for {}), который останавливается вручную через break.
Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚Базу Знаний
Please open Telegram to view this post
VIEW IN TELEGRAM
👍5🔥1💊1
Anonymous Quiz
33%
slice := make([]T, 10)
4%
slice := []T{10}
59%
slice := make([]T, 0, 10)
4%
slice := [10]T{}
💊10👍3
Anonymous Quiz
78%
person := Person{}
10%
person := new(Person)
3%
person := Person()
9%
person := make(Person)
Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚Базу Знаний
Please open Telegram to view this post
VIEW IN TELEGRAM
👍5🔥1
Anonymous Quiz
20%
delete(arr, i)
9%
arr.remove(i)
66%
rr = append(arr[:i], arr[i+1:]...)
4%
arr[i] = nil
💊6👍5
Anonymous Quiz
68%
delete(m, key)
8%
m.remove(key)
12%
m.delete(key)
11%
m[key] = nil
Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚Базу Знаний
Please open Telegram to view this post
VIEW IN TELEGRAM
👍5
Anonymous Quiz
50%
regex
10%
re
38%
regexp
2%
regexps
Anonymous Quiz
67%
const DaysInWeek = 7
1%
constant DaysInWeek = 7
31%
const DaysInWeek int = 7
0%
define DaysInWeek = 7
Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚Базу Знаний
Please open Telegram to view this post
VIEW IN TELEGRAM
👍5