# Encuentra el bug: Go > Un fragmento de código. Encuentra el bug, o demuestra que no hay ninguno. Reto diario: 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 } ``` ## Tu veredicto - Fallo de seguridad - Bug de lógica - Estilo de código - Sin problema Un intento por día. La respuesta aparece justo después. --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/es/reto-diario/go