BEARD_PROGRAMMER_LOUNGE Telegram 156
https://www.tgoop.com/hookah_programmers/3225

Вот в таком коде Михаил из WB ожидал что надо писать вариант 2 метода


type HookahPlaceRepo struct {
db []string
}

func (h *HookahPlaceRepo) findOneProgrammer(id int) string {
return h.db[id]
}

var repo HookahPlaceRepo
programmer := repo.findOneProgrammer(0)

func (h *HookahPlaceRepo) findOneProgrammer(id int) string {
if h != nil {
return h.db[id]
}
return ""
}
👍1🤡1



tgoop.com/beard_programmer_lounge/156
Create:
Last Update:

https://www.tgoop.com/hookah_programmers/3225

Вот в таком коде Михаил из WB ожидал что надо писать вариант 2 метода


type HookahPlaceRepo struct {
db []string
}

func (h *HookahPlaceRepo) findOneProgrammer(id int) string {
return h.db[id]
}

var repo HookahPlaceRepo
programmer := repo.findOneProgrammer(0)

func (h *HookahPlaceRepo) findOneProgrammer(id int) string {
if h != nil {
return h.db[id]
}
return ""
}

BY Кальянная программиста


Share with your friend now:
tgoop.com/beard_programmer_lounge/156

View MORE
Open in Telegram


Telegram News

Date: |

Unlimited number of subscribers per channel 6How to manage your Telegram channel? Some Telegram Channels content management tips Telegram channels enable users to broadcast messages to multiple users simultaneously. Like on social media, users need to subscribe to your channel to get access to your content published by one or more administrators. With the “Bear Market Screaming Therapy Group,” we’ve now transcended language.
from us


Telegram Кальянная программиста
FROM American