# Spot the bug: Go > One snippet. Find the bug, or prove there isn't one. Daily challenge: 2026-08-19 (UTC) ยท Mid-Level ```go package users import "sync" type User struct { ID string Name string } var ( mu sync.Mutex cache = map[string]*User{} ) func GetUser(id string, fetch func() *User) *User { mu.Lock() defer mu.Unlock() if u, ok := cache[id]; ok { return u } u := fetch() cache[id] = u return u } ``` ## Your verdict - Security flaw - Logic bug - Code style - No issue One attempt per day. The answer shows up right after. --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/en/daily/go