Spotlight archive

Guess the language.

Three lines, three guesses.

MODESpotlight0/3
Spotlight · ?.??
1type User struct{ ID int; Email string }
2func (u *User) IsValid() bool { return u.ID > 0 && strings.Contains(u.Email, "@") }
3func (u *User) Domain() string { return strings.SplitN(u.Email, "@", 2)[1] }
$ identify language
scripting
compiled
query
Keep going