Anonymous Quiz
85%
func name() *int
1%
func name() int*
13%
func name() &int
0%
func name() pointer int
Anonymous Quiz
28%
go list all
26%
go list -m all
16%
go modules list
30%
go packages
👍2
Ставь 👍 если знал ответ, 🔥 если нет
Забирай 📚Базу Знаний
Please open Telegram to view this post
VIEW IN TELEGRAM
👍6
Anonymous Quiz
15%
func add(int a, int b) int
72%
func add(a int, b int) int
3%
function add(a int, b int) int
10%
func add(a int, b int)
👍3
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